Fix the source of log files

pull/86/head
Dct Mei 2020-04-13 10:23:38 +08:00
parent dd1b0330ea
commit a600b066da
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@ install_log() {
LOG='0'
if [ ! -d '/var/log/v2ray/' ]; then
install -d -o nobody -g nobody /var/log/v2ray/
install -m 600 -o nobody -g nobody /var/log/v2ray/access.log
install -m 600 -o nobody -g nobody /var/log/v2ray/error.log
install -m 600 -o nobody -g nobody /dev/null /var/log/v2ray/access.log
install -m 600 -o nobody -g nobody /dev/null /var/log/v2ray/error.log
LOG='1'
fi
}