1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00

Merge pull request #155 from YunoHost-Apps/upgrade_full_replace

[autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1
This commit is contained in:
Josue-T 2024-03-11 21:13:56 +01:00 committed by GitHub
commit 0e7395111c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,13 +71,10 @@ fi
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
# purge the "bundles" folder to avoid pointlessly taking up space at each update
ynh_secure_remove --file="$install_dir/bundles/"
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config.json"
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config.json"
fi
chmod -R o-rwx "$install_dir"