Merge pull request #28 from v2fly/develop

fix: Permission control of the log folder
pull/64/head
Dct Mei 2020-07-25 09:18:44 +00:00 committed by GitHub
commit 422f3873bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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