diff options
-rw-r--r-- | etc/init.d/anytun | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/init.d/anytun b/etc/init.d/anytun index 9aa9a17..f8ac738 100644 --- a/etc/init.d/anytun +++ b/etc/init.d/anytun @@ -13,7 +13,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/anytun CHROOTDIR='/var/run/anytun' -DAEMONOPTS="--chroot --username anytun --chroot-dir $CHROOTDIR" +DAEMONOPTS="--chroot --username nobody --chroot-dir $CHROOTDIR" NAME=anytun DESC=anytun CONFIG_DIR=/etc/anytun @@ -30,7 +30,7 @@ start_vpn () { if [ -f $CONFIG_DIR/$NAME/config ] ; then DAEMONARG=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e '\w' | sed 's/^/ --/' | xargs echo` $DAEMON --write-pid /var/run/anytun.$NAME.pid \ - $DAEMONARG > /dev/null || STATUS="FAILED" + $DAEMONOPTS $DAEMONARG > /dev/null || STATUS="FAILED" else STATUS="no config found" fi |