|
|
@ -78,6 +78,7 @@ letsencrypt_get_challenge_type() { |
|
|
|
|
|
|
|
letsencrypt_set_renew_before_expiry() { |
|
|
|
local domain="$1" days="$2" renewal_file |
|
|
|
domain="${domain#\*.}" ## remove '*.' from wildcard domain |
|
|
|
renewal_file="$SERVICE_DATASTORE"/etc/letsencrypt/renewal/"$domain".conf |
|
|
|
[ -e "$renewal_file" ] || return 1 |
|
|
|
sed -ri "s/^(#\s+)?(renew_before_expiry\s*=)\s*[0-9]+(\s+days)$/\2 $days\3/g" "$renewal_file" |
|
|
|