init.d: allow to override WS_USER

This commit is contained in:
bol-van 2021-11-06 11:23:23 +03:00
parent 6fe5d7f43a
commit fa8f061710
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ HOSTLIST="$ZHOSTLIST.gz"
PIDDIR=/var/run
[ -n "$TPPORT" ] || TPPORT=988
TPWS_USER=daemon
[ -n "$TPWS_USER" ] || TPWS_USER=daemon
TPWS_WAIT="--bind-wait-ifup=30 --bind-wait-ip=30"
TPWS_WAIT_SOCKS6="$TPWS_WAIT --bind-wait-ip-linklocal=30"
[ -n "$TPWS" ] || TPWS="$ZAPRET_BASE/tpws/tpws"

View File

@ -52,7 +52,7 @@ prepare_user()
}
}
WS_USER=tpws
[ -n "$WS_USER" ] || WS_USER=tpws
prepare_user
PIDDIR=/var/run