Ommit OpenVPN if not installed.

This commit is contained in:
root
2017-02-21 16:48:17 +01:00
parent 6c8a7a75ec
commit 10ad624fdd
3 changed files with 19 additions and 13 deletions

View File

@ -121,14 +121,16 @@ fi
# - OpenVPN:
# - /etc/openvpn/*
# -
echo -en "\tVPN settings.."
/etc/init.d/openvpn stop > /dev/null
rm -rf /etc/openvpn
cp -a ${base_dir}/${network}/openvpn /etc/openvpn
if [ "$?" != "0" ]; then
echo_FAILED
else
echo_OK
if [[ -d "/etc/openvpn" ]]; then
echo -en "\tVPN settings.."
/etc/init.d/openvpn stop > /dev/null
rm -rf /etc/openvpn
cp -a ${base_dir}/${network}/openvpn /etc/openvpn
if [ "$?" != "0" ]; then
echo_FAILED
else
echo_OK
fi
fi
if [ -d "/root/.openvpn" ]; then