1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

Update upgrade script

This commit is contained in:
Julien VAUBOURG 2015-07-13 19:40:34 +02:00
parent 138a6f6f0e
commit 24fb24100a

View file

@ -34,7 +34,6 @@ tmpdir=$(mktemp -dp /tmp/ "${APP}-upgrade-XXXXX")
sudo systemctl stop "${SERVICE}" sudo systemctl stop "${SERVICE}"
install_time=$(sudo yunohost app setting "${APP}" install_time)
sudo cp -a "/etc/yunohost/apps/${APP}/settings.yml" "${tmpdir}/" sudo cp -a "/etc/yunohost/apps/${APP}/settings.yml" "${tmpdir}/"
sudo yunohost app remove "${APP}" sudo yunohost app remove "${APP}"
@ -42,6 +41,7 @@ sudo yunohost app install "https://github.com/${OWNER}/${REPO}" --args "${args_u
sudo systemctl stop "${SERVICE}" sudo systemctl stop "${SERVICE}"
install_time=$(sudo yunohost app setting "${APP}" install_time)
sudo cp -a "${tmpdir}/settings.yml" "/etc/yunohost/apps/${APP}/" sudo cp -a "${tmpdir}/settings.yml" "/etc/yunohost/apps/${APP}/"
sudo yunohost app setting "${APP}" install_time -v "${install_time}" sudo yunohost app setting "${APP}" install_time -v "${install_time}"