1
0
Fork 0
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:
Kay0u 2020-03-13 23:51:18 +01:00
parent 42432469dd
commit 64bd8a117f
No known key found for this signature in database
GPG key ID: 7FF262C033518333

View file

@ -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
#================================================= #=================================================