opensuse scripts
This commit is contained in:
parent
3395da831a
commit
2f9812a636
1 changed files with 6 additions and 2 deletions
|
|
@ -937,7 +937,7 @@ verb 3" >>/etc/openvpn/server.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Finally, restart and enable OpenVPN
|
# Finally, restart and enable OpenVPN
|
||||||
if [[ $OS == 'arch' || $OS == 'fedora' || $OS == 'centos' || $OS == 'oracle' ]]; then
|
if [[ $OS == 'arch' || $OS == 'fedora' || $OS == 'opensuse' || $OS == 'centos' || $OS == 'oracle' ]]; then
|
||||||
# Don't modify package-provided service
|
# Don't modify package-provided service
|
||||||
cp /usr/lib/systemd/system/openvpn-server@.service /etc/systemd/system/openvpn-server@.service
|
cp /usr/lib/systemd/system/openvpn-server@.service /etc/systemd/system/openvpn-server@.service
|
||||||
|
|
||||||
|
|
@ -1226,6 +1226,8 @@ function removeUnbound() {
|
||||||
yum remove -y unbound
|
yum remove -y unbound
|
||||||
elif [[ $OS == 'fedora' ]]; then
|
elif [[ $OS == 'fedora' ]]; then
|
||||||
dnf remove -y unbound
|
dnf remove -y unbound
|
||||||
|
elif [[ $OS == 'opensuse' ]]; then
|
||||||
|
zypper remove -y unbound
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf /etc/unbound/
|
rm -rf /etc/unbound/
|
||||||
|
|
@ -1248,7 +1250,7 @@ function removeOpenVPN() {
|
||||||
PROTOCOL=$(grep '^proto ' /etc/openvpn/server.conf | cut -d " " -f 2)
|
PROTOCOL=$(grep '^proto ' /etc/openvpn/server.conf | cut -d " " -f 2)
|
||||||
|
|
||||||
# Stop OpenVPN
|
# Stop OpenVPN
|
||||||
if [[ $OS =~ (fedora|arch|centos|oracle) ]]; then
|
if [[ $OS =~ (fedora|opensuse|arch|centos|oracle) ]]; then
|
||||||
systemctl disable openvpn-server@server
|
systemctl disable openvpn-server@server
|
||||||
systemctl stop openvpn-server@server
|
systemctl stop openvpn-server@server
|
||||||
# Remove customised service
|
# Remove customised service
|
||||||
|
|
@ -1293,6 +1295,8 @@ function removeOpenVPN() {
|
||||||
yum remove -y openvpn
|
yum remove -y openvpn
|
||||||
elif [[ $OS == 'fedora' ]]; then
|
elif [[ $OS == 'fedora' ]]; then
|
||||||
dnf remove -y openvpn
|
dnf remove -y openvpn
|
||||||
|
elif [[ $OS == 'opensuse' ]]; then
|
||||||
|
zypper remove -y openvpn
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue