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
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-03-26 20:44:45 +0300
committernachoparker <nacho@ownyourbits.com>2019-03-26 20:46:00 +0300
commit7e40a7052348bda1cbf38126303e16c0e89df6e3 (patch)
treea5bf5b3d439e8ad804802603243bdad9acf9ac5f
parent38799fd537ffc7c466f76956bd3ff8ba8cc445ac (diff)
letsencrypt: make sure deploy dir exists
-rw-r--r--bin/ncp/NETWORKING/letsencrypt.sh1
-rw-r--r--changelog.md8
-rwxr-xr-xupdate.sh1
3 files changed, 7 insertions, 3 deletions
diff --git a/bin/ncp/NETWORKING/letsencrypt.sh b/bin/ncp/NETWORKING/letsencrypt.sh
index 4db06edc..2462bb2e 100644
--- a/bin/ncp/NETWORKING/letsencrypt.sh
+++ b/bin/ncp/NETWORKING/letsencrypt.sh
@@ -78,6 +78,7 @@ rm -rf $ncdir/.well-known
EOF
chmod 755 /etc/cron.weekly/letsencrypt-ncp
+ mkdir -p /etc/letsencrypt/renewal-hooks/deploy/ncp
cat > /etc/letsencrypt/renewal-hooks/deploy/ncp <<EOF
#!/bin/bash
/usr/local/bin/ncc notification:generate \
diff --git a/changelog.md b/changelog.md
index 1cf783e7..7f4f9653 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,9 +1,11 @@
-[v1.10.6](https://github.com/nextcloud/nextcloudpi/commit/076aeb2) (2019-03-23) letsencrypt: rework notification
+[v1.10.7](https://github.com/nextcloud/nextcloudpi/commit/e0a692b) (2019-03-26) letsencrypt: make sure deploy dir exists
-[v1.10.5, master](https://github.com/nextcloud/nextcloudpi/commit/2460264) (2019-03-23) fix cron path
+[v1.10.6](https://github.com/nextcloud/nextcloudpi/commit/38799fd) (2019-03-23) letsencrypt: rework notification
-[v1.10.4](https://github.com/nextcloud/nextcloudpi/commit/f0b467b) (2019-03-18) nc-update-nc-apps-auto: only notify if there was update
+[v1.10.5 ](https://github.com/nextcloud/nextcloudpi/commit/2460264) (2019-03-23) fix cron path
+
+[v1.10.4 ](https://github.com/nextcloud/nextcloudpi/commit/f0b467b) (2019-03-18) nc-update-nc-apps-auto: only notify if there was update
[v1.10.3 ](https://github.com/nextcloud/nextcloudpi/commit/4b6572a) (2019-03-18) nc-update-nc: fix case where imported cfg from non docker to docker
diff --git a/update.sh b/update.sh
index 5ce047d0..10b06e52 100755
--- a/update.sh
+++ b/update.sh
@@ -220,6 +220,7 @@ EOF
# rework letsencrypt notification
USER="$(jq -r '.params[2].value' "$CONFDIR"/letsencrypt.cfg)"
+ mkdir -p /etc/letsencrypt/renewal-hooks/deploy/
cat > /etc/letsencrypt/renewal-hooks/deploy/ncp <<EOF
#!/bin/bash
/usr/local/bin/ncc notification:generate $USER "SSL renewal" -l "Your SSL certificate(s) \$RENEWED_DOMAINS has been renewed for another 90 days"