mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
Keep Specific directory intact
This commit is contained in:
parent
42432469dd
commit
64bd8a117f
1 changed files with 8 additions and 0 deletions
|
@ -75,8 +75,16 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=3
|
ynh_script_progression --message="Upgrading source files..." --weight=3
|
||||||
|
|
||||||
|
# Keep the Specific folder intact: https://sabre.io/baikal/upgrade/
|
||||||
|
temp_folder=$(mktemp -d)
|
||||||
|
mv "$final_path/Specific" "$temp_folder"
|
||||||
# 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="$final_path"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
|
|
||||||
|
ynh_secure_remove --file="$final_path/Specific"
|
||||||
|
|
||||||
|
mv "$temp_folder/Specific" "$final_path"
|
||||||
|
ynh_secure_remove --file="$temp_folder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue