Update: Using built-in user detection

pull/62/head
KoinuDayo 2023-07-26 03:01:13 +08:00
parent 7a95e979bc
commit 4847b9d999
1 changed files with 3 additions and 2 deletions

View File

@ -626,6 +626,7 @@ stop_xray() {
install_with_logrotate() { install_with_logrotate() {
install_software 'logrotate' 'logrotate' install_software 'logrotate' 'logrotate'
check_install_user
if [[ -z "$LOGROTATE_TIME" ]]; then if [[ -z "$LOGROTATE_TIME" ]]; then
LOGROTATE_TIME="00:00:00" LOGROTATE_TIME="00:00:00"
fi fi
@ -661,7 +662,7 @@ EOF
compress compress
delaycompress delaycompress
notifempty notifempty
create 0600 nobody nobody create 0600 $INSTALL_USER_UID $INSTALL_USER_GID
} }
/var/log/xray/error.log { /var/log/xray/error.log {
@ -671,7 +672,7 @@ EOF
compress compress
delaycompress delaycompress
notifempty notifempty
create 0600 nobody nobody create 0600 $INSTALL_USER_UID $INSTALL_USER_GID
} }
EOF EOF
LOGROTATE_FIN='1' LOGROTATE_FIN='1'