Add command hook.

This commit is contained in:
redxef 2021-04-13 21:09:00 +02:00
parent 9efef52563
commit 5c44c19060
2 changed files with 8 additions and 5 deletions

View file

@ -1,10 +1,9 @@
FROM alpine:latest FROM alpine:latest
RUN apk update && apk upgrade \ RUN apk add \
&& apk add \ curl \
curl \ certbot \
certbot \ openssl
openssl
RUN mkdir -p /etc/periodic/12h \ RUN mkdir -p /etc/periodic/12h \
&& mkdir -p /etc/periodic/5min && mkdir -p /etc/periodic/5min

View file

@ -11,3 +11,7 @@ certbot certonly --manual --preferred-challenges dns-01 --keep \
--agree-tos --no-eff-email --manual-public-ip-logging-ok \ --agree-tos --no-eff-email --manual-public-ip-logging-ok \
--manual-auth-hook=certbot-auth --manual-cleanup-hook=certbot-cleanup \ --manual-auth-hook=certbot-auth --manual-cleanup-hook=certbot-cleanup \
"$@" "$@"
if [ -n "$COMMAND" ]; then
/usr/bin/env sh -c "$COMMAND"
fi