1
0

add --force-renew arg to update_cert

Sets a minimum certificate validity of 90 days, meaning forced renewal for LE certificates.
This commit is contained in:
Nicolas Duchon 2017-08-12 11:23:38 +02:00
parent 86eef9ffb9
commit f6f2874003

@ -70,6 +70,7 @@ update_certs() {
params_d_str=""
[[ $DEBUG == true ]] && params_d_str+=" -v"
[[ $REUSE_KEY == true ]] && params_d_str+=" --reuse_key"
[[ "${1}" == "--force-renew" ]] && params_d_str+=" --valid_min 7776000" && shift
hosts_array_expanded=("${!hosts_array}")
# First domain will be our base domain