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

Update upgrade

This commit is contained in:
ericgaspar 2021-03-24 19:33:03 +01:00
parent 3f96954a5c
commit 9ebe46347e
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -188,21 +188,21 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=4
# Create a temporary directory
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$final_path/settings.json" "$tmpdir/settings.json"
# # Create a temporary directory
# tmpdir="$(mktemp -d)"
# # Backup the config file in the temp dir
# cp -a "$final_path/settings.json" "$tmpdir/settings.json"
ynh_secure_remove --file="$final_path"
# ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
# Copy the admin saved settings from tmp directory to final config path
cp -a "$tmpdir/settings.json" "$final_path/settings.json"
# # Copy the admin saved settings from tmp directory to final config path
# cp -a "$tmpdir/settings.json" "$final_path/settings.json"
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"
# # Remove the tmp directory securely
# ynh_secure_remove --file="$tmpdir"
fi