From 7d6e9bf1e189110b73274d4d0c54b8a408b5c76f Mon Sep 17 00:00:00 2001 From: Birkhoff <23278129+birkhoffcheng@users.noreply.github.com> Date: Sat, 18 Aug 2018 16:04:36 -0700 Subject: [PATCH] Autoremove after purging --- openvpn-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 86bb7eb..5935a29 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -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