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

View File

@ -53,7 +53,7 @@ search ~~ Uses the Google search
} }
function privacycheck { 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" echo "ERROR: Should not torrent directly from the AniNIX main IP for privacy reasons" 2>&1 | tee -a "$logfile"
exit 1 exit 1
fi fi
@ -209,7 +209,7 @@ case "$1" in
"--member") "--member")
echo "Spawning a $(head -n 1 "$2") member for $2 on `uname -n`" | tee -a "$logfile" 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 case "$(head -n 1 "$2")" in
"shows") "shows")
shows "$2" shows "$2"