mirror of
https://github.com/YunoHost-Apps/wikijs_ynh.git
synced 2024-09-03 20:36:09 +02:00
Removing sources before upgrading sources
This commit is contained in:
parent
efea127bc4
commit
65a3f41081
1 changed files with 8 additions and 0 deletions
|
@ -115,8 +115,16 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_print_info --message="Upgrading source files..."
|
ynh_print_info --message="Upgrading source files..."
|
||||||
|
|
||||||
|
config_file="$final_path/config.yml"
|
||||||
|
tmpdir="$(mktemp -d)"
|
||||||
|
|
||||||
|
rsync -a "$config_file" "$tmpdir/."
|
||||||
|
ynh_secure_remove --file="$final_path"
|
||||||
|
|
||||||
# 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"
|
||||||
|
|
||||||
|
rsync -a "$tmpdir/config.yml" "$final_path/."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue