From 5c1a8343c69958e10e36633bb946f6c39d33f70c Mon Sep 17 00:00:00 2001 From: zhengguang Date: Thu, 31 May 2018 16:57:38 +0800 Subject: [PATCH] fix crontab not running --- startup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index a325d23..d55a8e9 100755 --- a/startup.sh +++ b/startup.sh @@ -13,6 +13,7 @@ if [[ "$SECRET_KEY" == "" ]];then echo "please set env: SECRET_KEY" exit 1 fi +service cron start mkdir -p /ssl/${DOMAIN}/ touch /var/log/acme.sh.log @@ -23,4 +24,4 @@ $acme --installcert -d ${DOMAIN} \ --reloadcmd "python /app/update_cdn_sslcert.py" --debug --log "/var/log/acme.sh.log" -tail -f /var/log/acme.sh.log \ No newline at end of file +tail -f /var/log/acme.sh.log