apt: use remove instead of autoremove

Close https://github.com/angristan/openvpn-install/issues/794
This commit is contained in:
Stanislas Lange 2021-03-10 21:46:52 +01:00
parent 1abb6a6948
commit d1de5c64fe
No known key found for this signature in database
GPG Key ID: 710D9597C7EAD8CF

View File

@ -1186,7 +1186,7 @@ function removeUnbound() {
systemctl stop unbound
if [[ $OS =~ (debian|ubuntu) ]]; then
apt-get autoremove --purge -y unbound
apt-get remove --purge -y unbound
elif [[ $OS == 'arch' ]]; then
pacman --noconfirm -R unbound
elif [[ $OS =~ (centos|amzn) ]]; then
@ -1249,7 +1249,7 @@ function removeOpenVPN() {
fi
if [[ $OS =~ (debian|ubuntu) ]]; then
apt-get autoremove --purge -y openvpn
apt-get remove --purge -y openvpn
if [[ -e /etc/apt/sources.list.d/openvpn.list ]]; then
rm /etc/apt/sources.list.d/openvpn.list
apt-get update