Skip to content

Commit

Permalink
Merge pull request v2fly#45 from v2fly/develop
Browse files Browse the repository at this point in the history
fix: Missing Log Source
  • Loading branch information
dctxmei authored Aug 15, 2020
2 parents 864e531 + 46ccbf0 commit c73193c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ installed: /usr/local/etc/v2ray/07_transport.json
installed: /usr/local/etc/v2ray/08_stats.json
installed: /usr/local/etc/v2ray/09_reverse.json
installed: /var/log/v2ray/
installed: /var/log/v2ray/access.log
installed: /var/log/v2ray/error.log
installed: /etc/systemd/system/v2ray.service
installed: /etc/systemd/system/[email protected]
```
Expand Down
10 changes: 6 additions & 4 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,12 @@ install_v2ray() {
if [[ ! -d '/var/log/v2ray/' ]]; then
if [[ -n "$(id nobody | grep nogroup)" ]]; then
install -d -m 700 -o nobody -g nogroup /var/log/v2ray/
install -m 600 -o nobody -g nogroup /var/log/v2ray/access.log
install -m 600 -o nobody -g nogroup /var/log/v2ray/error.log
install -m 600 -o nobody -g nogroup /dev/null /var/log/v2ray/access.log
install -m 600 -o nobody -g nogroup /dev/null /var/log/v2ray/error.log
else
install -d -m 700 -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
fi
LOG='1'
fi
Expand Down Expand Up @@ -562,6 +562,8 @@ main() {
fi
if [[ "$LOG" -eq '1' ]]; then
echo 'installed: /var/log/v2ray/'
echo 'installed: /var/log/v2ray/access.log'
echo 'installed: /var/log/v2ray/error.log'
fi
if [[ "$SYSTEMD" -eq '1' ]]; then
echo 'installed: /etc/systemd/system/v2ray.service'
Expand Down

0 comments on commit c73193c

Please sign in to comment.