Skip to content

Commit 1307f6e

Browse files
authored
Update ClamAV.sh
1 parent c357833 commit 1307f6e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

scripts/ClamAV.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ uninstall_clamav() {
2121
sudo apt remove -y clamav clamav-daemon
2222
sudo apt autoremove -y
2323
echo "ClamAV has been uninstalled successfully."
24+
echo "Use clamscan to scan the server."
25+
sleep 5
2426
}
25-
27+
clear
2628
echo "Choose an option:"
2729
echo "1 - Install ClamAV"
2830
echo "2 - Uninstall ClamAV"
29-
read -p "Enter your choice (1 or 2): " choice
31+
echo "0 - Back to Main Menu"
32+
read -p "Enter your choice: " choice
3033

3134
case $choice in
3235
1)
@@ -35,6 +38,10 @@ case $choice in
3538
2)
3639
uninstall_clamav
3740
;;
41+
0)
42+
echo "Exiting..."
43+
exit 0
44+
;;
3845
*)
3946
echo "Invalid choice. Please run the script again and choose 1 or 2."
4047
;;

0 commit comments

Comments
 (0)