1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-27 23:46:07 +03:00

Fix indentation

This commit is contained in:
Julien Reichardt 2015-12-13 11:58:31 +01:00
parent 2cd35e883e
commit 6e6f5c3f7b

View File

@ -24,7 +24,8 @@ fi
if grep -qs "CentOS release 5" "/etc/redhat-release"
then echo "CentOS 5 is too old and not supported"
then
echo "CentOS 5 is too old and not supported"
exit 3
fi
@ -49,7 +50,8 @@ pidof /sbin/init && INITSYS=sysvinit
# Return the PID of systemd if running
pidof systemd && INITSYS=systemd
if [ "$INITSYS" = "" ]
then echo "Your init system isn't supported"
then
echo "Your init system isn't supported"
exit 5
fi
@ -318,7 +320,7 @@ crl-verify /etc/openvpn/easy-rsa/pki/crl.pem" >> /etc/openvpn/server.conf
fi
# And finally, restart OpenVPN
if [ $INITSYS = systemd ]
then # Little hack to check for systemd
then
systemctl restart openvpn@server.service
systemctl enable openvpn@server.service
else