summaryrefslogtreecommitdiff
path: root/security/letsencrypt.sh/files/000.letsencrypt.sh.in
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2016-02-14 18:29:04 +0000
committerBernard Spil <brnrd@FreeBSD.org>2016-02-14 18:29:04 +0000
commit196391f259c4f3b1c3af24406b25ef06d34eaf29 (patch)
treeee7b3ba9968ab739a4895990ec3fad4b20a6735b /security/letsencrypt.sh/files/000.letsencrypt.sh.in
parentAdd MySQL 5.7 symlinks for mysqlclient_r libs (diff)
security/letsencrypt.sh: Update to 2016-02-12
- Update to 2016-02-16 - Add options for ZSH - Change periodic script to weekly - Add unprivileged renewal option - Add privileged post-script option PR: 206976 Reviewed by: feld (mentor), koobs (mentor), sascha (maintainer) Approved by: sascha (maintainer), feld (mentor) Differential Revision: D5264
Notes
Notes: svn path=/head/; revision=408879
Diffstat (limited to 'security/letsencrypt.sh/files/000.letsencrypt.sh.in')
-rw-r--r--security/letsencrypt.sh/files/000.letsencrypt.sh.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/security/letsencrypt.sh/files/000.letsencrypt.sh.in b/security/letsencrypt.sh/files/000.letsencrypt.sh.in
index 25891b4672be..d30e980c00e0 100644
--- a/security/letsencrypt.sh/files/000.letsencrypt.sh.in
+++ b/security/letsencrypt.sh/files/000.letsencrypt.sh.in
@@ -8,9 +8,17 @@ then
source_periodic_confs
fi
-case "$monthly_letsencrypt_enable" in
+case "$weekly_letsencrypt_enable" in
[Yy][Ee][Ss])
- %%PREFIX%%/bin/letsencrypt.sh -c
+ if [ -z "$weekly_letsencrypt_user" ]
+ then
+ %%PREFIX%%/bin/letsencrypt.sh -c
+ else
+ su -m "$weekly_letsencrypt_user" -c '%%PREFIX%%/bin/letsencrypt.sh -c'
+ fi
+ if [ -x "$weekly_letsencrypt_deployscript" ]
+ $weekly_letsencrypt_deployscript
+ fi
;;
*)
;;