From 9014c5831f7520a782a809b1c0e70e9324654664 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Fri, 8 May 2020 12:17:01 +0200 Subject: [PATCH] Yet better way of initial run of certbot. --- example/gateway/focker-compose.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/example/gateway/focker-compose.yml b/example/gateway/focker-compose.yml index 29cc1a5..b9096ba 100644 --- a/example/gateway/focker-compose.yml +++ b/example/gateway/focker-compose.yml @@ -35,9 +35,12 @@ jails: certbot-data: /usr/local/etc/letsencrypt certbot-webroot: /certbot/webroot exec.start: | - rm -vf /usr/local/etc/letsencrypt/.ready && \ - ( ( /usr/local/bin/python3 /certbot/scripts/certbot.py && \ - touch /usr/local/etc/letsencrypt/.ready ) & ) && \ + if [ ! -f /certbot/data/.ready ]; then + rm -vf /usr/local/etc/letsencrypt/.ready && \ + /usr/local/bin/python3 /certbot/scripts/certbot.py && \ + touch /usr/local/etc/letsencrypt/.ready && \ + touch /certbot/data/.ready; + fi && \ /bin/sh /etc/rc ip4.addr: 127.0.13.1