Fix GitHub issue #45 - Linux install issues

This commit is contained in:
Adam Ierymenko 2014-03-05 23:57:25 +01:00
parent 54313212a4
commit 17c77da38f

View File

@ -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