From e22dafda6933bd7a7e9c48d2f3210ba03f399c9a Mon Sep 17 00:00:00 2001 From: cezar97 Date: Sun, 18 Mar 2018 18:07:18 +0100 Subject: [PATCH] Uninstalling OpenVPN remove ovpns --- openvpn-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 54aacdf..2aad1e6 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -190,6 +190,7 @@ if [[ -e /etc/openvpn/server.conf ]]; then fi rm -rf /etc/openvpn rm -rf /usr/share/doc/openvpn* + cd /home/ && rm $(find . -maxdepth 2 | grep .ovpn) || rm /root/*.ovpn echo "" echo "OpenVPN removed!" else