Merge branch 'master' of core.aninix.net:/srv/foundation/WolfPack

This commit is contained in:
DarkFeather 2017-06-19 17:02:06 -05:00
commit 4bd612dbff
1 changed files with 2 additions and 2 deletions

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"