Browse Source

Fix GitHub issue #45 - Linux install issues

Adam Ierymenko 11 years ago
parent
commit
17c77da38f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ext/installfiles/linux/init.d/zerotier-one

+ 1 - 1
ext/installfiles/linux/init.d/zerotier-one

@@ -30,7 +30,7 @@ zthome=/var/lib/zerotier-one
 # better in a ps listing.
 export PATH=/bin:/usr/bin:/sbin:/usr/sbin:$zthome
 
-if [ "$UID" -ne 0 ]; then
+if [ "`id -u`" -ne 0 ]; then
 	echo "Init script must be called as root."
 	exit 4
 fi