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() {