Wait 10 sec only while renewing LE for more than 1 domain

This commit is contained in:
dpeca 2018-04-26 19:11:51 +02:00 committed by GitHub
commit 8d85cdcb2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ users=$($BIN/v-list-users | tail -n+3 | awk '{ print $1 }')
for user in $users; do
USER_DATA=$VESTA/data/users/$user
# Checking user certificates
lecounter=0
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
crt="$VESTA/data/users/$user/ssl/$domain.crt"
@ -57,7 +58,10 @@ for user in $users; do
echo "$domain $msg"
fi
fi
sleep 10
if [ $lecounter -gt 0 ]; then
sleep 10
fi
((lecounter++))
fi
done
done