1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2022-05-02 19:49:33 +02:00
parent 0e252d4271
commit eb4732a011
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -84,8 +84,18 @@ ynh_script_progression --message="Upgrading source files..."
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..."
# Move old app dir
mv ${final_path} ${final_path}.old
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path" --keep="$final_path/data"
ynh_setup_source "$final_path"
# restore data
cp -a ${final_path}.old/data ${final_path}
# delete temp directory
ynh_secure_remove --file=${final_path}.old
fi
chmod 750 "$final_path"