From 4772c677f1efa7e114c89dd6cd069232028365c2 Mon Sep 17 00:00:00 2001 From: hoellen Date: Mon, 18 Jun 2018 08:15:36 +0000 Subject: [PATCH] Dont't exit after acme_tiny script is downloaded --- renew_cert.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renew_cert.sh b/renew_cert.sh index db44e88..5eb4d88 100755 --- a/renew_cert.sh +++ b/renew_cert.sh @@ -42,7 +42,11 @@ fi if [ ! -f "$acme_tiny" ]; then 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 - exit 1 + if [ $? != 0 ]; then + echo "Could not download acme_tiny.py script." + rm -rf $acme_tiny + exit 1 + fi fi acme_dir=${acme_dir%/}