mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-24 05:56:08 +03:00
Fix indentation
This commit is contained in:
parent
2cd35e883e
commit
6e6f5c3f7b
@ -24,7 +24,8 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if grep -qs "CentOS release 5" "/etc/redhat-release"
|
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
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -49,7 +50,8 @@ pidof /sbin/init && INITSYS=sysvinit
|
|||||||
# Return the PID of systemd if running
|
# Return the PID of systemd if running
|
||||||
pidof systemd && INITSYS=systemd
|
pidof systemd && INITSYS=systemd
|
||||||
if [ "$INITSYS" = "" ]
|
if [ "$INITSYS" = "" ]
|
||||||
then echo "Your init system isn't supported"
|
then
|
||||||
|
echo "Your init system isn't supported"
|
||||||
exit 5
|
exit 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -202,7 +204,7 @@ else
|
|||||||
CLIENT=${CLIENT:-client}
|
CLIENT=${CLIENT:-client}
|
||||||
echo ""
|
echo ""
|
||||||
echo "Okay, that was all I needed. We are ready to setup your OpenVPN server now"
|
echo "Okay, that was all I needed. We are ready to setup your OpenVPN server now"
|
||||||
echo "Press [ENTER] to continue... \c"
|
echo "Press [ENTER] to continue... \c "
|
||||||
read
|
read
|
||||||
if [ $OS = debian ]
|
if [ $OS = debian ]
|
||||||
then
|
then
|
||||||
@ -318,7 +320,7 @@ crl-verify /etc/openvpn/easy-rsa/pki/crl.pem" >> /etc/openvpn/server.conf
|
|||||||
fi
|
fi
|
||||||
# And finally, restart OpenVPN
|
# And finally, restart OpenVPN
|
||||||
if [ $INITSYS = systemd ]
|
if [ $INITSYS = systemd ]
|
||||||
then # Little hack to check for systemd
|
then
|
||||||
systemctl restart openvpn@server.service
|
systemctl restart openvpn@server.service
|
||||||
systemctl enable openvpn@server.service
|
systemctl enable openvpn@server.service
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user