From 7fc7febe13b124c5602c581c07ccb50ab1961fc8 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Sat, 11 Apr 2020 23:28:17 +0800 Subject: [PATCH] Variable correction --- install-release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-release.sh b/install-release.sh index 352b74e..6c121d1 100644 --- a/install-release.sh +++ b/install-release.sh @@ -49,7 +49,7 @@ done unzip -q "$ZIP_FILE" -d "$TMP_DIRECTORY" -V2RAY_RUNNING= +V2RAY_RUNNING='0' if [ -n "$(pgrep v2ray)" ]; then rc-service v2ray stop V2RAY_RUNNING='1' @@ -59,7 +59,7 @@ install -m 755 "${TMP_DIRECTORY}v2ctl" "/usr/local/bin/v2ctl" install -d /usr/local/lib/v2ray/ install -m 755 "${TMP_DIRECTORY}geoip.dat" "/usr/local/lib/v2ray/geoip.dat" install -m 755 "${TMP_DIRECTORY}geosite.dat" "/usr/local/lib/v2ray/geosite.dat" -CONFDIR= +CONFDIR='0' if [ ! -d '/usr/local/etc/v2ray/' ]; then install -d /usr/local/etc/v2ray/ for BASE in 00_log 01_api 02_dns 03_routing 04_policy 05_inbounds 06_outbounds 07_transport 08_stats 09_reverse; do @@ -67,12 +67,12 @@ if [ ! -d '/usr/local/etc/v2ray/' ]; then done CONFDIR='1' fi -LOG= +LOG='0' if [ ! -d '/var/log/v2ray/' ]; then install -d -o nobody -g nobody /var/log/v2ray/ LOG='1' fi -OPENRC= +OPENRC='0' if [ ! -f '/etc/init.d/v2ray' ]; then mkdir "${TMP_DIRECTORY}init.d/" curl -o "${TMP_DIRECTORY}init.d/v2ray" https://raw.githubusercontent.workers.dev/v2fly/alpinelinux-install-v2ray/master/init.d/v2ray -s