From b7018768027b68f2f023a87010ecba90d4261260 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Wed, 17 May 2017 16:18:00 -0500 Subject: [PATCH] Should reference more explicity for cron jobs --- wolfpack | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfpack b/wolfpack index b770f9b..b2f0824 100755 --- a/wolfpack +++ b/wolfpack @@ -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"