Update rtwebmin

This commit is contained in:
arakasi72
2016-04-25 21:55:45 +01:00
parent cc6690c9a8
commit 665f8684d6
+1 -1
View File
@@ -9,7 +9,7 @@
######################################################################
PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin
SERVERIP=$(ip a s eth0 | awk '/inet / {print$2}' | cut -d/ -f1)
SERVERIP=$(ip route get 8.8.8.8 | awk 'NR==1 {print $NF}')
if ! [ "$LOGNAME" = "root" ]; then
echo "Must be run as root, directly or with sudo"