mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
Merge pull request #262 from YunoHost-Apps/upgrade_full_replace
[autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1
This commit is contained in:
commit
15801fcc9d
2 changed files with 2 additions and 10 deletions
|
@ -60,10 +60,6 @@ ram.runtime = "50M"
|
||||||
extract = true
|
extract = true
|
||||||
format = "zip"
|
format = "zip"
|
||||||
|
|
||||||
autoupdate.strategy = "latest_gitlab_release"
|
|
||||||
autoupdate.asset.api = "api.*"
|
|
||||||
autoupdate.asset.front = "front.*"
|
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
|
@ -34,13 +34,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
# Remove the old files
|
|
||||||
ynh_secure_remove --file="$install_dir/api"
|
|
||||||
ynh_secure_remove --file="$install_dir/front"
|
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$install_dir/api" --source_id="api"
|
ynh_setup_source --dest_dir="$install_dir/api" --source_id="api" --full_replace=1
|
||||||
ynh_setup_source --dest_dir="$install_dir/front" --source_id="front"
|
ynh_setup_source --dest_dir="$install_dir/front" --source_id="front" --full_replace=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue