From 4847b9d9999c2411b4fe6687fa8594859d2bad37 Mon Sep 17 00:00:00 2001 From: KoinuDayo Date: Wed, 26 Jul 2023 03:01:13 +0800 Subject: [PATCH] Update: Using built-in user detection --- install-release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-release.sh b/install-release.sh index de45e13..d7ce1ca 100755 --- a/install-release.sh +++ b/install-release.sh @@ -626,6 +626,7 @@ stop_xray() { install_with_logrotate() { install_software 'logrotate' 'logrotate' + check_install_user if [[ -z "$LOGROTATE_TIME" ]]; then LOGROTATE_TIME="00:00:00" fi @@ -661,7 +662,7 @@ EOF compress delaycompress notifempty - create 0600 nobody nobody + create 0600 $INSTALL_USER_UID $INSTALL_USER_GID } /var/log/xray/error.log { @@ -671,7 +672,7 @@ EOF compress delaycompress notifempty - create 0600 nobody nobody + create 0600 $INSTALL_USER_UID $INSTALL_USER_GID } EOF LOGROTATE_FIN='1'