You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
376 B

#!/bin/bash
[ $# -ne 1 ] && echo "domain name required! ie: listes.virkingraid.org" && exit 1
LIST=$1
TIMEOUT=30
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"
else
echo -e "\e[38;5;240mmonit-sympa\e[0m $LIST \e[38;5;240m... \e[0;31mNO\e[0m"
echo "$LIST" >>.errors
fi