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 | |
if [ -r "${0%.sh}.conf" ]; then { | |
. "${0%.sh}.conf" | |
} else { | |
echo -e "\n\tAdd the variables HOSTNAME, USERNAME and PASSWORD to the file ${0%.sh}.conf, adjust the update URL and run this script once a minute!\n" | |
}; fi | |
DIG="`which dig` +short" |