uacme: allow including run-uacme
With this commit, the run-acme script can be included into other scripts by setting INLCUDE_ONLY=1. Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
This commit is contained in:
parent
0c044284b7
commit
4588a61652
1 changed files with 9 additions and 5 deletions
|
@ -403,9 +403,11 @@ load_vars()
|
||||||
DEBUG=$(config_get "$section" debug)
|
DEBUG=$(config_get "$section" debug)
|
||||||
}
|
}
|
||||||
|
|
||||||
check_cron
|
if [ -z "$INCLUDE_ONLY" ]; then
|
||||||
[ -n "$CHECK_CRON" ] && exit 0
|
check_cron
|
||||||
[ -e "/var/run/acme_boot" ] && rm -f "/var/run/acme_boot" && exit 0
|
[ -n "$CHECK_CRON" ] && exit 0
|
||||||
|
[ -e "/var/run/acme_boot" ] && rm -f "/var/run/acme_boot" && exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
config_load acme
|
config_load acme
|
||||||
config_foreach load_vars acme
|
config_foreach load_vars acme
|
||||||
|
@ -421,6 +423,8 @@ fi
|
||||||
trap err_out HUP TERM
|
trap err_out HUP TERM
|
||||||
trap int_out INT
|
trap int_out INT
|
||||||
|
|
||||||
config_foreach issue_cert cert
|
if [ -z "$INCLUDE_ONLY" ]; then
|
||||||
|
config_foreach issue_cert cert
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue