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,7 +1,6 @@
FROM alpine:latest
RUN apk update && apk upgrade \
&& apk add \
RUN apk add \
curl \
certbot \
openssl

View file

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