6
0
Fork 0

Minor fixes / typo to __rc_nginx_vhost, __uacme_obtain

This commit is contained in:
Timothée Floure 2020-11-30 08:36:44 +01:00
parent b1aa3aa61d
commit 7abd3f2316
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
2 changed files with 5 additions and 2 deletions

View file

@ -10,4 +10,4 @@ EOF
)" )"
export NGINX_LOGIC export NGINX_LOGIC
"${__object:?}/files/generic.conf.sh" "${__type:?}/files/generic.conf.sh"

View file

@ -105,6 +105,9 @@ elif [ -z "$KEY_TARGET" ] && [ -n "$CERT_TARGET" ]; then
exit 1 exit 1
fi fi
# Make sure challengedir exist.
__directory "$CHALLENGEDIR" --parents
# Generate and deploy renew script. # Generate and deploy renew script.
mkdir -p "${__object:?}/files" mkdir -p "${__object:?}/files"
"${__type:?}/files/renew.sh.sh" > "${__object:?}/files/uacme-renew.sh" "${__type:?}/files/renew.sh.sh" > "${__object:?}/files/uacme-renew.sh"
@ -114,5 +117,5 @@ require="__directory/$CONFDIR/$MAIN_DOMAIN" __file "$CONFDIR/$MAIN_DOMAIN/renew.
--mode 0755 --source "${__object:?}/files/uacme-renew.sh" --mode 0755 --source "${__object:?}/files/uacme-renew.sh"
# Set up renew cronjob - initial issue done in gencode-remote. # Set up renew cronjob - initial issue done in gencode-remote.
__cron "uacme-$MAIN_DOMAIN" --user root --hour 2 \ __cron "uacme-$MAIN_DOMAIN" --user root --hour 2 --minute 0 \
--command "$CONFDIR/$MAIN_DOMAIN/renew.sh" --command "$CONFDIR/$MAIN_DOMAIN/renew.sh"