|
@ -3,7 +3,7 @@ |
|
|
[ $# -ne 1 ] && echo "domain name required! ie: listes.virkingraid.org" && exit 1 |
|
|
[ $# -ne 1 ] && echo "domain name required! ie: listes.virkingraid.org" && exit 1 |
|
|
|
|
|
|
|
|
LIST=$1 |
|
|
LIST=$1 |
|
|
TIMEOUT=10 |
|
|
|
|
|
|
|
|
TIMEOUT=30 |
|
|
|
|
|
|
|
|
if (curl -m $TIMEOUT -Is "https://$LIST/wws" | grep -q "200 OK"); then |
|
|
if (curl -m $TIMEOUT -Is "https://$LIST/wws" | grep -q "200 OK"); then |
|
|
echo -e "\e[38;5;240mmonit-sympa\e[0m $LIST \e[38;5;240m... \e[0;32mYES\e[0m" |
|
|
echo -e "\e[38;5;240mmonit-sympa\e[0m $LIST \e[38;5;240m... \e[0;32mYES\e[0m" |
|
|