Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-03-17 15:48:29 +0300
committernachoparker <nacho@ownyourbits.com>2018-03-18 23:18:43 +0300
commit85127d756ce95bb9ab53e93424686fa6dedaa064 (patch)
tree223451aab802776419900192751be6023375dbfd /etc
parent30f5756d10b7303731018b298ae3b84679bd6b17 (diff)
letsencrypt: remove .well-known dir after renewalv0.53.2
Diffstat (limited to 'etc')
-rw-r--r--etc/nextcloudpi-config.d/letsencrypt.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/letsencrypt.sh b/etc/nextcloudpi-config.d/letsencrypt.sh
index 608896af..a0e34015 100644
--- a/etc/nextcloudpi-config.d/letsencrypt.sh
+++ b/etc/nextcloudpi-config.d/letsencrypt.sh
@@ -52,6 +52,7 @@ persistent_cfg /etc/letsencrypt
cat > /etc/cron.weekly/letsencrypt-ncp <<EOFCRON
#!/bin/bash
/etc/letsencrypt/certbot-auto renew --quiet
+rm -rf $NCDIR/.well-known
EOFCRON
chmod +x /etc/cron.weekly/letsencrypt-ncp
@@ -75,6 +76,7 @@ configure()
cat > /etc/cron.weekly/letsencrypt-ncp <<EOF
#!/bin/bash
/etc/letsencrypt/certbot-auto renew --quiet
+rm -rf $NCDIR/.well-known
EOF
chmod +x /etc/cron.weekly/letsencrypt-ncp