fix: Permission control of the log folder

pull/28/head
Dct Mei 2020-07-25 17:15:16 +08:00
parent 238469c303
commit b09dd49446
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 2 additions and 2 deletions

View File

@ -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