Added Sophos AV stop to Update function. If it is running on Kali or Parrot it will error the update.

This commit is contained in:
Phil 2021-01-28 14:59:53 +00:00
parent 886d3c259d
commit 0332b48c3e

View File

@ -97,8 +97,9 @@ sudo -v
fi
if [ "$(grep -c "debian" /etc/os-release)" -gt 0 ]; then
echo "Updating Apt Packages..."
sudo service sav-protect stop >> /dev/null
sudo apt clean && sudo apt update && sudo apt --autoremove full-upgrade -y
sudo service sav-protect start >> /dev/null
elif [ "$(grep -c "arch" /etc/os-release)" -gt 0 ]; then
echo "Updating Pacman Packages"
sudo pacman -Syu