Update hev-socks5-tunnel configuration setup
This commit is contained in:
1 parent
ba1cec1ace
commit
858e89b5f7
1 file changed
+5
-2
@@ -1274,8 +1274,11 @@ EOF
|
||||
sleep 1
|
||||
|
||||
echo "Настройка UCI-сервиса hev-socks5-tunnel"
|
||||
uci set hev-socks5-tunnel.config.enabled='1'
|
||||
uci set hev-socks5-tunnel.config.configfile='/etc/hev-socks5-tunnel/main.yml'
|
||||
if ! uci -q get hev-socks5-tunnel.@instance[0] >/dev/null 2>&1; then
|
||||
uci add hev-socks5-tunnel instance >/dev/null
|
||||
fi
|
||||
uci set hev-socks5-tunnel.@instance[0].enabled='1'
|
||||
uci set hev-socks5-tunnel.@instance[0].conffile='/etc/hev-socks5-tunnel/main.yml'
|
||||
uci commit hev-socks5-tunnel
|
||||
/etc/init.d/hev-socks5-tunnel restart
|
||||
sleep 2
|
||||
|
||||
Reference in new issue
Block a user