diff --git a/Dockerfile b/Dockerfile index 072dd12..6589f35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN install -dm 2700 -o root -g root /root/.ssh RUN apk add --no-cache certbot jq wget openssh-client rsync COPY ./monit.conf /etc/monit.d/certbot.conf -COPY ./certbot.sh /usr/local/bin/certbot +COPY ./certbotd.sh /usr/local/bin/certbotd COPY ./ssh_config /root/.ssh/config VOLUME /etc/letsencrypt diff --git a/certbot.sh b/certbotd.sh similarity index 100% rename from certbot.sh rename to certbotd.sh diff --git a/monit.conf b/monit.conf index 7d1eb88..739d86d 100644 --- a/monit.conf +++ b/monit.conf @@ -1,17 +1,17 @@ # Get first certificate! check program certbot_bootstrap - with path "/usr/local/bin/certbot bootstrap" + with path "/usr/local/bin/certbotd bootstrap" every 1 cycle if status = 0 then unmonitor # Renew certificates once a week check program certbot_renew - with path "/usr/local/bin/certbot renew" + with path "/usr/local/bin/certbotd renew" every "13 5 * * *" if status != 0 then alert # Get missing certificates for every cycle. check program certbot - with path "/usr/local/bin/certbot" + with path "/usr/local/bin/certbotd" every 1 cycle if status != 0 then alert