Created
November 11, 2022 21:57
-
-
Save varlen/a4ba46571e9e177bc37891d8dd04bbd9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
response=$(curl --write-out '%{http_code}' --silent --output /dev/null <address>) | |
if [ "$response" != "200" ]; then | |
reboot | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment