mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Add upgrade
This commit is contained in:
parent
a4a7838255
commit
138a6f6f0e
1 changed files with 7 additions and 1 deletions
|
@ -33,13 +33,19 @@ done
|
|||
tmpdir=$(mktemp -dp /tmp/ "${APP}-upgrade-XXXXX")
|
||||
|
||||
sudo systemctl stop "${SERVICE}"
|
||||
|
||||
install_time=$(sudo yunohost app setting "${APP}" install_time)
|
||||
sudo cp -a "/etc/yunohost/apps/${APP}/settings.yml" "${tmpdir}/"
|
||||
|
||||
sudo yunohost app remove "${APP}"
|
||||
sudo yunohost app install "https://github.com/${OWNER}/${REPO}" --args "${args_url}"
|
||||
|
||||
sudo systemctl stop "${SERVICE}"
|
||||
|
||||
sudo cp -a "${tmpdir}/settings.yml" "/etc/yunohost/apps/${APP}/"
|
||||
sudo systemctl restart "${SERVICE}"
|
||||
sudo yunohost app setting "${APP}" install_time -v "${install_time}"
|
||||
|
||||
sudo systemctl start "${SERVICE}"
|
||||
|
||||
sudo rm -r "${tmpdir}/"
|
||||
|
||||
|
|
Loading…
Reference in a new issue