Skip to content

Commit

Permalink
Merge pull request #524 from nodogsplash/4.4.1beta
Browse files Browse the repository at this point in the history
PreAuth: Fix broken remote image retrieval
  • Loading branch information
bluewavenet committed Feb 12, 2020
2 parents af4e585 + d834fee commit 6603d57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ get_image_file() {
imagepath="/etc/nodogsplash/htdocs/images/remote"
mkdir "/tmp/remote"

if [ ! -f "$imagepath" ]; then
if [ ! -d "$imagepath" ]; then
ln -s /tmp/remote /etc/nodogsplash/htdocs/images/remote
fi

md5=$(echo -e "$imageurl" | md5sum);
filename=$(echo -e "$md5" | awk -F" -" {'print($1)'});
filename=$(echo -e "$md5" | awk {'print($1)'});
filename="$filename.$imagetype"

if [ ! -f "$imagepath/$filename" ]; then
Expand Down

0 comments on commit 6603d57

Please sign in to comment.