From a18eb75f477b2fa2d60673d50822b4338d09bb93 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Fri, 8 May 2020 11:46:40 +0200 Subject: [PATCH] Better way for initial run of certbot --- example/gateway/certbot/files/crontab_nobody | 1 + example/gateway/focker-compose.yml | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/example/gateway/certbot/files/crontab_nobody b/example/gateway/certbot/files/crontab_nobody index a577bdb..7612fe8 100644 --- a/example/gateway/certbot/files/crontab_nobody +++ b/example/gateway/certbot/files/crontab_nobody @@ -1 +1,2 @@ +@reboot /usr/local/bin/python3 /certbot/scripts/certbot.py >/dev/null 2>&1 @weekly /usr/local/bin/certbot renew --webroot -w /certbot/webroot --server https://127.0.11.1:14000 --no-verify-ssl -n --agree-tos >/dev/null 2>&1 diff --git a/example/gateway/focker-compose.yml b/example/gateway/focker-compose.yml index e29de25..84b962b 100644 --- a/example/gateway/focker-compose.yml +++ b/example/gateway/focker-compose.yml @@ -33,9 +33,6 @@ jails: mounts: certbot-data: /usr/local/etc/letsencrypt certbot-webroot: /certbot/webroot - exec.start: | - ( /usr/bin/su -m nobody -c "python3 /certbot/scripts/certbot.py" && \ - /bin/sh /etc/rc ) & nginx-https: image: nginx-https