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:
parent
0e252d4271
commit
eb4732a011
1 changed files with 11 additions and 1 deletions
|
@ -84,8 +84,18 @@ ynh_script_progression --message="Upgrading source files..."
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
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
|
# 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
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue