Dont't exit after acme_tiny script is downloaded

This commit is contained in:
hoellen 2018-06-18 08:15:36 +00:00
parent 6f26522bb9
commit 4772c677f1

View File

@ -42,8 +42,12 @@ fi
if [ ! -f "$acme_tiny" ]; then if [ ! -f "$acme_tiny" ]; then
echo "Python script acme_tiny.py is missing. Downloading..." echo "Python script acme_tiny.py is missing. Downloading..."
wget -qo $acme_tiny https://raw.githubusercontent.com/diafygi/acme-tiny/4.0.3/acme_tiny.py wget -qo $acme_tiny https://raw.githubusercontent.com/diafygi/acme-tiny/4.0.3/acme_tiny.py
if [ $? != 0 ]; then
echo "Could not download acme_tiny.py script."
rm -rf $acme_tiny
exit 1 exit 1
fi fi
fi
acme_dir=${acme_dir%/} acme_dir=${acme_dir%/}
opt_dir=${opt_dir%/} opt_dir=${opt_dir%/}