1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-23 21:46:08 +03:00

Autoremove after purging

This commit is contained in:
Birkhoff 2018-08-18 16:04:36 -07:00 committed by GitHub
parent e37fa065ea
commit 7d6e9bf1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,8 @@ if [[ -e /etc/openvpn/server.conf ]]; then
semanage port -d -t openvpn_port_t -p $PROTOCOL $PORT
fi
if [[ "$OS" = 'debian' ]]; then
apt remove --purge openvpn stunnel4 -y
apt purge openvpn stunnel4 -y
apt autoremove --purge -y
else
yum remove openvpn stunnel4 -y
fi