mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-05 16:46:18 +00:00
Update rtwebmin
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user