try setting mail.log permissions during setup

This commit is contained in:
downtownallday committed 2022-09-22 18:06:03 -04:00
1 parent c9eb90800b
commit 35aa9f7691
2 files changed
+6 -4

No files matched your search

+5 -4
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