Removing sources before upgrading sources
This commit is contained in:
parent
efea127bc4
commit
65a3f41081
@ -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…
x
Reference in New Issue
Block a user