From fa8f0617105cf89d86c712f949fbe84301719c23 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 6 Nov 2021 11:23:23 +0300 Subject: [PATCH] init.d: allow to override WS_USER --- init.d/macos/functions | 2 +- init.d/sysv/functions | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/macos/functions b/init.d/macos/functions index 09fb63a..f3e0bcc 100644 --- a/init.d/macos/functions +++ b/init.d/macos/functions @@ -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" diff --git a/init.d/sysv/functions b/init.d/sysv/functions index 0bc1300..da5c361 100644 --- a/init.d/sysv/functions +++ b/init.d/sysv/functions @@ -52,7 +52,7 @@ prepare_user() } } -WS_USER=tpws +[ -n "$WS_USER" ] || WS_USER=tpws prepare_user PIDDIR=/var/run