fail statefile
This commit is contained in:
parent
6af8aafd4a
commit
1b232d906f
9
le-renew
9
le-renew
|
@ -70,6 +70,11 @@ main() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
if [[ -f "$cfg_dir/domains/$certname/renew.fail" ]]; then
|
||||
err "Fail flag exists: $cfg_dir/domains/$certname/renew.fail, not attempting renew."
|
||||
return 2
|
||||
fi
|
||||
|
||||
if ! openssl x509 -checkend "$checkend_seconds" < "$cfg_dir/domains/$certname/certificate.pem"; then
|
||||
if ! (( "${#domains[@]}" )); then
|
||||
if [[ -f "$cfg_dir/domains/$certname/renew.cfg" ]]; then
|
||||
|
@ -83,7 +88,9 @@ main() {
|
|||
le_args+=( '-d' "$d" )
|
||||
done
|
||||
|
||||
le "${le_args[@]}"
|
||||
if ! le "${le_args[@]}"; then
|
||||
> "$cfg_dir/domains/$certname/renew.fail"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user