Add Packages and Clamav config
This commit is contained in:
Executable
+10
@@ -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
|
||||
Reference in New Issue
Block a user