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:
commit
0e7395111c
1 changed files with 1 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue