Changeset View
Changeset View
Standalone View
Standalone View
security/letsencrypt.sh/files/000.letsencrypt.sh.in
#!/bin/sh | #!/bin/sh | ||||
# If there is a global system configuration file, suck it in. | # If there is a global system configuration file, suck it in. | ||||
# | # | ||||
if [ -r /etc/defaults/periodic.conf ] | if [ -r /etc/defaults/periodic.conf ] | ||||
then | then | ||||
. /etc/defaults/periodic.conf | . /etc/defaults/periodic.conf | ||||
source_periodic_confs | source_periodic_confs | ||||
fi | fi | ||||
case "$monthly_letsencrypt_enable" in | case "$weekly_letsencrypt_enable" in | ||||
[Yy][Ee][Ss]) | [Yy][Ee][Ss]) | ||||
if [ -z "$weekly_letsencrypt_user" ] | |||||
then | |||||
%%PREFIX%%/bin/letsencrypt.sh -c | %%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 | |||||
;; | ;; | ||||
*) | *) | ||||
;; | ;; | ||||
esac | esac | ||||