This commit is contained in:
alcapone1933
2022-12-30 01:47:47 +01:00
parent 5c6ad37592
commit e16e8dc0e9
5 changed files with 12 additions and 7 deletions

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env bash
PFAD="/data"
DATUM=$(date +%Y-%m-%d\ %H:%M:%S)
if ! curl -4sSL --user-agent "${CURL_USER_AGENT}" --fail "https://ipv64.net" 2>&1 > /dev/null; then
set -e
if ! curl -sSL --user-agent "${CURL_USER_AGENT}" --fail "https://ipv64.net" 2>&1 > /dev/null; then
echo "$DATUM FEHLER !!! - 404 Sie haben kein Netzwerk oder Internetzugang oder die Webseite ipv64.net ist nicht erreichbar"
exit 1
fi