Update restore procedure
This commit is contained in:
@@ -21,14 +21,10 @@ export VPNCLIENT_UPGRADE=1
|
||||
sudo bash /etc/yunohost/apps/vpnclient/scripts/remove &> /dev/null
|
||||
bash ./install "${domain}" "${path}" "${server_name}"
|
||||
|
||||
gitcommit=$(ynh_setting vpnclient gitcommit)
|
||||
|
||||
sudo cp -a "${tmpdir}/settings.yml" /etc/yunohost/apps/vpnclient/
|
||||
sudo cp -a "${tmpdir}/keys/"* /etc/openvpn/keys/ 2> /dev/null
|
||||
sudo rm -r "${tmpdir}/"
|
||||
|
||||
sudo yunohost app setting vpnclient gitcommit -v "${gitcommit}"
|
||||
|
||||
# Changes
|
||||
|
||||
if [ -z "$(ynh_setting vpnclient dns0)" ]; then
|
||||
|
Reference in New Issue
Block a user