Fix upgrade/restore script

This commit is contained in:
Julien Vaubourg
2016-05-14 21:24:20 +02:00
parent 852d331df3
commit 0637cdf401
3 changed files with 7 additions and 15 deletions

View File

@@ -27,13 +27,9 @@ export HOTSPOT_UPGRADE=1
sudo bash /etc/yunohost/apps/hotspot/scripts/remove &> /dev/null
bash ./install "${domain}" "${path}" "${wifi_ssid}" "${wifi_passphrase}" "${firmware_nonfree}"
gitcommit=$(ynh_setting hotspot gitcommit)
sudo cp -a "${tmpdir}/settings.yml" /etc/yunohost/apps/hotspot/
sudo rm -r "${tmpdir}/"
sudo yunohost app setting hotspot gitcommit -v "${gitcommit}"
# Changes
if [ -z "$(ynh_setting hotspot ip6_firewall)" ]; then