From ac0ac01635838b890793eb92118bb4abec0a7510 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Wed, 25 Mar 2020 22:12:42 +0800 Subject: [PATCH] Fix the error again --- install-release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-release.sh b/install-release.sh index 8dd379e..67bef5b 100644 --- a/install-release.sh +++ b/install-release.sh @@ -341,7 +341,11 @@ installV2Ray(){ # Used to store V2Ray log files if [[ ! -d '/var/log/v2ray/' ]]; then - install -do nobody /var/log/v2ray/ + if [[ -n "$(id nobody | grep nogroup)" ]]; then + install -d -o nobody -g nogroup /var/log/v2ray/ + else + install -do nobody /var/log/v2ray/ + fi fi } installStartupServiceFile() {