File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1522,7 +1522,7 @@ genalert() {
1522
1522
fi
1523
1523
fi
1524
1524
elif [ "$type" == "panel" ] && [ -f "$file" ]; then
1525
- eout "{panel} Detecting control panel and sending alerts..." 1
1525
+ eout "{panel} Detecting control panel and sending alerts..." 1
1526
1526
control_panel=""
1527
1527
detect_control_panel
1528
1528
if [ "$control_panel" == "error" ] || [ "$control_panel" == "unknown" ]; then
@@ -1552,7 +1552,7 @@ genalert() {
1552
1552
# Determine control panel, noop if error or none detected
1553
1553
eout "{panel} Detected control panel $control_panel. Will send alerts to control panel account contacts." 1
1554
1554
user_list=$(awk '{print $1}' $tmpdir/.panel_alert.hits | sort | uniq)
1555
- if [ -n "$user_list"]; then
1555
+ if [ -n "$user_list" ]; then
1556
1556
for sys_user in $user_list; do
1557
1557
contact_emails=""
1558
1558
get_panel_contacts $control_panel $sys_user
@@ -1581,7 +1581,8 @@ genalert() {
1581
1581
eout "{panel} No compatible \$sendmail or \$mail binaries found, control panel account alerts disabled."
1582
1582
fi
1583
1583
done
1584
- fi
1584
+ fi
1585
+ rm -f $tmpdir/.panel_alert.hits $tmpdir/.panel_alert.clean $tmpdir/.${sys_user}.hits $tmpdir/.${sys_user}.clean $tmpf
1585
1586
fi
1586
1587
elif [ "$type" == "daily" ] || [ "$type" == "digest" ]; then
1587
1588
inotify_start_time=`ps -p $(ps -A -o 'pid cmd' | grep -E maldetect | grep -E inotifywait | awk '{print$1}' | head -n1) -o lstart= 2> /dev/null`
You can’t perform that action at this time.
0 commit comments