Robustize OS Detection.

This is framework needed to support Ubuntu 16.04 which
is coming in a future commit.
This commit is contained in:
Kaladin Light 2016-05-10 11:49:29 -04:00
parent 24fc3ae75f
commit 2f3540b898
3 changed files with 39 additions and 13 deletions

View file

@ -64,7 +64,7 @@ if [ $REVOKE_STATUS == 0 ]; then
printf "\nThis seems to be the first time you have revoked a cert.\n"
printf "We are adding the CRL to the server.conf and restarting openvpn.\n"
sed -i '/#crl-verify/c\crl-verify /etc/openvpn/crl.pem' /etc/openvpn/server.conf
if [[ ${PLAT} == "ubuntu" ]]; then
if [[ ${PLAT} == "Ubuntu" ]]; then
service openvpn restart
else
systemctl restart openvpn.service