Skip to content

Commit

Permalink
Setup workdir and logdir in the persistent storage
Browse files Browse the repository at this point in the history
  • Loading branch information
adferrand committed May 27, 2019
1 parent f40fd3a commit af08c9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion files/renew.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh

echo "Launch renew test"
certbot renew -n --deploy-hook deploy-hook.sh
certbot renew \
-n \
--config-dir /etc/letsencrypt --logs-dir /etc/letsencrypt/logs --work-dir /etc/letsencrypt/work \
--deploy-hook deploy-hook.sh
7 changes: 6 additions & 1 deletion files/watch-domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ while true; do

if [ "$LETSENCRYPT_SKIP_REGISTER" != true ]; then
echo "#### Registering Let's Encrypt account if needed ####"
certbot register -n --agree-tos $LETSENCRYPT_REGISTER_OPTS -m $LETSENCRYPT_USER_MAIL $server_cmd
certbot register \
-n \
--config-dir /etc/letsencrypt --logs-dir /etc/letsencrypt/logs --work-dir /etc/letsencrypt/work \
--agree-tos $LETSENCRYPT_REGISTER_OPTS \
-m $LETSENCRYPT_USER_MAIL $server_cmd
fi

echo "#### Clean autorestart/autocmd jobs"
Expand All @@ -54,6 +58,7 @@ while true; do
echo ">>> Creating a certificate for domain(s):$domains_cmd"
certbot certonly \
-n \
--config-dir /etc/letsencrypt --logs-dir /etc/letsencrypt/logs --work-dir /etc/letsencrypt/work \
--manual \
--preferred-challenges=dns \
--manual-auth-hook /var/lib/letsencrypt/hooks/authenticator.sh \
Expand Down

0 comments on commit af08c9c

Please sign in to comment.