This commit is contained in:
Julien Vaubourg
2016-08-14 18:56:29 +02:00
parent 2fd86faf81
commit 20db75b2b0

View File

@@ -22,7 +22,11 @@ if [ ! -e /etc/openvpn/client.conf.tpl.restore ] || ! cmp -s /etc/openvpn/client
fi
export VPNCLIENT_UPGRADE=1
echo "Current path: $PWD"
read
sudo bash /etc/yunohost/apps/vpnclient/scripts/remove &> /dev/null
echo "Current path: $PWD"
read
bash ./install "${domain}" "${path}" "${server_name}"
sudo cp -a "${tmpdir}/settings.yml" /etc/yunohost/apps/vpnclient/