fix cronjob
This commit is contained in:
parent
f20864f42e
commit
01f3b3236d
2 changed files with 2 additions and 11 deletions
3
Procfile
3
Procfile
|
|
@ -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
|
||||
10
updatessl.sh
10
updatessl.sh
|
|
@ -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
|
||||
|
||||
"$@"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue