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:
parent
138a6f6f0e
commit
24fb24100a
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue