From b09dd49446322b2946ac9e45bbf7b88cc87e2cc1 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Sat, 25 Jul 2020 17:15:16 +0800 Subject: [PATCH] fix: Permission control of the log folder --- install-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-release.sh b/install-release.sh index 753c393..a166f9d 100644 --- a/install-release.sh +++ b/install-release.sh @@ -353,9 +353,9 @@ install_v2ray() { # Used to store V2Ray log files if [[ ! -d '/var/log/v2ray/' ]]; then if [[ -n "$(id nobody | grep nogroup)" ]]; then - install -d -o nobody -g nogroup /var/log/v2ray/ + install -d -m 700 -o nobody -g nogroup /var/log/v2ray/ else - install -d -o nobody -g nobody /var/log/v2ray/ + install -d -m 700 -o nobody -g nobody /var/log/v2ray/ fi LOG='1' fi