mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-07-12 09:24:22 +02:00
Remove obsolete Ubuntu case
Ubuntu uses systemd
This commit is contained in:
parent
32b1c4fcb5
commit
1564232fbd
@ -931,11 +931,6 @@ verb 3" >>/etc/openvpn/server/server.conf
|
||||
systemctl daemon-reload
|
||||
systemctl enable openvpn-server@server
|
||||
systemctl restart openvpn-server@server
|
||||
elif [[ $OS == "ubuntu" ]] && [[ $VERSION_ID == "16.04" ]]; then
|
||||
# On Ubuntu 16.04, we use the package from the OpenVPN repo
|
||||
# This package uses a sysvinit service
|
||||
systemctl enable openvpn
|
||||
systemctl start openvpn
|
||||
else
|
||||
# Don't modify package-provided service
|
||||
cp /lib/systemd/system/openvpn\@.service /etc/systemd/system/openvpn\@.service
|
||||
|
Loading…
x
Reference in New Issue
Block a user