mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-27 23:46:07 +03:00
Tested, ran sucessfully. Updating from local modifications.
This commit is contained in:
parent
4dbf223446
commit
3b928b9044
@ -38,7 +38,7 @@ elif [[ -e /etc/centos-release || -e /etc/redhat-release ]]; then
|
||||
RCLOCAL='/etc/rc.d/rc.local'
|
||||
# Needed for CentOS 7
|
||||
chmod +x /etc/rc.d/rc.local
|
||||
else
|
||||
elif [[ -e /usr/bin/pacman ]]; then
|
||||
#Else, OS is Arch
|
||||
OS=arch
|
||||
GROUPNAME=nobody
|
||||
@ -161,7 +161,7 @@ if [[ -e /etc/openvpn/server.conf ]]; then
|
||||
apt-get remove --purge -y openvpn openvpn-blacklist
|
||||
elif [[ "$OS" = 'centos' ]]; then
|
||||
yum remove openvpn -y
|
||||
elif [[ "$OS" = 'arch' ]]; then
|
||||
else
|
||||
pacman -Rs openvpn --noconfirm
|
||||
fi
|
||||
rm -rf /etc/openvpn
|
||||
|
Loading…
Reference in New Issue
Block a user