New version of AutoSWAP

This commit is contained in:
2025-05-07 02:13:00 +02:00
parent 76280be844
commit 5bd491033f
3 changed files with 23 additions and 9 deletions

11
testhttp.sh Normal file
View File

@@ -0,0 +1,11 @@
if curl -s --head --request GET http://192.168.27.248 | grep "200 OK" > /dev/null; then
echo "HTTP connection to example.com is available"
else
echo "HTTP connection to example.com failed"
fi
if curl -s -k --head --fail https://192.168.27.248 > /dev/null; then
echo "HTTPS connection to example.com is available (ignoring cert issues)"
else
echo "HTTPS connection to example.com failed"
fi