fix cronjob

This commit is contained in:
neil 2017-06-06 10:10:52 +08:00
parent f20864f42e
commit 01f3b3236d
2 changed files with 2 additions and 11 deletions

View file

@ -1,2 +1,3 @@
dockergen: docker-gen -watch -notify "/app/updatessl.sh updatessl" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
nginx: nginx
nginx: nginx
cron: cron -f

View file

@ -10,15 +10,6 @@ DEFAULT_CONF="/etc/nginx/conf.d/default.conf"
CERTS="/etc/nginx/certs"
startcron() {
if service cron status | grep "cron is running"; then
echo "cron is running, skip"
else
service cron start
fi
}
updatessl() {
if grep ACME_DOMAINS $DEFAULT_CONF ; then
@ -42,7 +33,6 @@ updatessl() {
}
startcron
"$@"