diff --git a/0.14/letsencrypt-entrypoint.sh b/0.14/letsencrypt-entrypoint.sh index c39c690..e7ab4c4 100755 --- a/0.14/letsencrypt-entrypoint.sh +++ b/0.14/letsencrypt-entrypoint.sh @@ -44,12 +44,12 @@ while true; do esac done +CRON_FILE="/var/log/letsencrypt/cron.log" + if [ $OBTAIN -eq 1 ]; then - letsencrypt-obtain.sh + letsencrypt-obtain.sh >> $CRON_FILE fi -CRON_FILE="/var/log/letsencrypt/cron.log" - if [ ! -f "$CRON_FILE" ]; then touch "$CRON_FILE" fi diff --git a/0.14/letsencrypt-obtain.sh b/0.14/letsencrypt-obtain.sh index 2e3c120..462d1a1 100755 --- a/0.14/letsencrypt-obtain.sh +++ b/0.14/letsencrypt-obtain.sh @@ -15,6 +15,6 @@ do continue fi - letsencrypt-auto "certonly" "-n" "--agree-tos" "$options" + letsencrypt-auto certonly -n --agree-tos $options done \ No newline at end of file diff --git a/0.14/letsencrypt-renew.sh b/0.14/letsencrypt-renew.sh index 638370c..7a9a017 100755 --- a/0.14/letsencrypt-renew.sh +++ b/0.14/letsencrypt-renew.sh @@ -15,6 +15,6 @@ do continue fi - letsencrypt-auto "certonly" "-n" "--agree-tos" "$options" + letsencrypt-auto certonly -n --agree-tos $options done \ No newline at end of file