Add Packages and Clamav config

This commit is contained in:
alvinlollo
2026-09-15 15:37:21 +10:00
committed by alvinlollo
parent 05c5a33b0c
commit ffee0ed8bc
7 changed files with 1485 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
PATH=/usr/bin
ALERT="Signature detected by clamav: $CLAM_VIRUSEVENT_VIRUSNAME in $CLAM_VIRUSEVENT_FILENAME"
# Send an alert to all graphical users.
for ADDRESS in /run/user/*; do
USERID=${ADDRESS#/run/user/}
/usr/bin/sudo -u "#$USERID" DBUS_SESSION_BUS_ADDRESS="unix:path=$ADDRESS/bus" PATH=${PATH} \
/usr/bin/notify-send -u critical -i dialog-warning "Virus found!" "$ALERT"
done