1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07:23 +01:00

try setting mail.log permissions during setup

This commit is contained in:
downtownallday
2022-09-22 18:06:03 -04:00
parent c9eb90800b
commit 35aa9f7691
2 changed files with 6 additions and 4 deletions

View File

@@ -366,10 +366,11 @@ flush_logs() {
else
pid=$(/usr/bin/pidof rsyslogd)
fi
if [ "$GITHUB_ACTIONS" = "true" ]; then
systemctl restart rsyslog >>$TEST_OF 2>&1
sleep 5
elif [ ! -z "$pid" ]; then
# if [ "$GITHUB_ACTIONS" = "true" ]; then
# systemctl restart rsyslog >>$TEST_OF 2>&1
# sleep 5
# elif [ ! -z "$pid" ]; then
if [ ! -z "$pid" ]; then
kill -HUP $pid >>$TEST_OF 2>&1
sleep 2
fi