Fix the error again

pull/1/head
Dct Mei 2020-03-25 22:12:42 +08:00
parent 5ac5084ffe
commit ac0ac01635
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 5 additions and 1 deletions

View File

@ -341,8 +341,12 @@ installV2Ray(){
# 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/
else
install -do nobody /var/log/v2ray/
fi
fi
}
installStartupServiceFile() {
if [[ ! -f '/etc/systemd/system/v2ray.service' ]]; then