Remove OpenVPN APT repo during removal

This commit is contained in:
angristan 2018-09-22 11:41:26 +02:00
parent c96a71c7d6
commit 7ed823cdf2

View File

@ -783,6 +783,10 @@ function removeOpenVPN () {
if [[ "$OS" = 'debian' ]]; then
apt-get autoremove --purge -y openvpn
if [[ -e /etc/apt/sources.list.d/openvpn.list ]];then
rm /etc/apt/sources.list.d/openvpn.list
apt-get update
fi
elif [[ "$OS" = 'centos' ]]; then
yum remove openvpn -y
elif [[ "$OS" = 'fedora' ]]; then