From d511153ee4da121ae5928d69b23870f4f3977315 Mon Sep 17 00:00:00 2001 From: neilpang Date: Sat, 3 Jun 2017 18:38:17 +0800 Subject: [PATCH] fix cron --- Procfile | 2 +- updatessl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Procfile b/Procfile index f2b293a..14b25ad 100644 --- a/Procfile +++ b/Procfile @@ -1,4 +1,4 @@ dockergen: docker-gen -watch -notify "/app/updatessl.sh updatessl" /app/nginx.tmpl /etc/nginx/conf.d/default.conf nginx: nginx -cron: cron +cron: cron && tail -f /dev/null diff --git a/updatessl.sh b/updatessl.sh index deb7e53..5ebd831 100755 --- a/updatessl.sh +++ b/updatessl.sh @@ -19,8 +19,8 @@ updatessl() { $ACME_BIN --issue \ -d $d_list \ --nginx \ - --fullchain-file "$CERTS\$d.crt" \ - --key-file "$CERTS\$d.crt" \ + --fullchain-file "$CERTS/$d.crt" \ + --key-file "$CERTS/$d.key" \ --reloadcmd "service nginx configtest && service force-reload" done