mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
letsencrypt: make sure deploy dir exists
This commit is contained in:
parent
38799fd537
commit
7e40a70523
@ -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 \
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user