-
-
Save FlorianHeigl/50f926ce053ca3424feee08975857d9e to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
OK=0 | |
CRIT=2 | |
tics=$(date +%s) | |
if [ "$tics" -gt 1561741200 -a "$tics" -lt 1561914000 ]; then | |
# From Friday 17:00Z to Sunday: STFU | |
echo "OK - Please do not disturb; party in progress" | |
exit $OK | |
fi | |
echo "CRIT - Nie wieder Alkohol!" | |
exit $CRIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment