LETSENCRYPT_FAIL_COUNT skip if suspended

This commit is contained in:
myvesta 2020-04-30 00:30:53 +02:00 committed by GitHub
commit e97f309e70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,8 +54,12 @@ for user in $($BIN/v-list-users plain |cut -f 1); do
msg=$($BIN/v-add-letsencrypt-domain $user $domain $aliases)
if [ $? -ne 0 ]; then
echo "$domain $msg"
fail_counter=$(alter_web_counter "$user" "$domain" 'LETSENCRYPT_FAIL_COUNT')
echo "fail_counter = $fail_counter"
if [[ $msg == *"is suspended" ]]; then
echo "OK, it's suspended"
else
fail_counter=$(alter_web_counter "$user" "$domain" 'LETSENCRYPT_FAIL_COUNT')
echo "fail_counter = $fail_counter"
fi
fi
fi
done