Should reference more explicity for cron jobs

This commit is contained in:
DarkFeather 2017-05-17 16:18:00 -05:00
parent 19055bacfd
commit b701876802

View File

@ -53,7 +53,7 @@ search ~~ Uses the Google search
}
function privacycheck {
if [ "$(whatismyip)" == "$(nslookup aninix.net | grep Address | cut -f 2 -d ' ' | tail -n 1)" ]; then
if [ "$(/usr/local/bin/whatismyip)" == "$(nslookup aninix.net | grep Address | cut -f 2 -d ' ' | tail -n 1)" ]; then
echo "ERROR: Should not torrent directly from the AniNIX main IP for privacy reasons" 2>&1 | tee -a "$logfile"
exit 1
fi
@ -209,7 +209,7 @@ case "$1" in
"--member")
echo "Spawning a $(head -n 1 "$2") member for $2 on `uname -n`" | tee -a "$logfile"
(printf "IP: "; whatismyip) | tee -a /var/log/wolfpack.log
(printf "IP: "; /usr/local/bin/whatismyip) | tee -a /var/log/wolfpack.log
case "$(head -n 1 "$2")" in
"shows")
shows "$2"