#!/bin/sh if [ -r /etc/defaults/periodic.conf ] then . /etc/defaults/periodic.conf source_periodic_confs fi PATH=$PATH:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin export PATH case "$weekly_letsencrypt_enable" in [Yy][Ee][Ss]) echo echo "Checking Let's Encrypt certificate status:" if [ -z "$weekly_letsencrypt_user" ] then %%PREFIX%%/bin/letsencrypt.sh -c else su -m "$weekly_letsencrypt_user" -c '%%PREFIX%%/bin/letsencrypt.sh -c' fi echo "Deploying Let's Encrypt certificates:" if [ -x "$weekly_letsencrypt_deployscript" ] then $weekly_letsencrypt_deployscript else echo 'Skipped, deploy script not set.' fi ;; *) ;; esac