From 37d96ed38182ea5d98fa4e3f033918facf15476c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 15 Nov 2023 13:32:29 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f574c9c..29c7413 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,26 +24,26 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Create a temporary directory - tmpdir="$(mktemp -d)" + #tmpdir="$(mktemp -d)" # Backup the config file in the temp dir - cp -a "$install_dir/data" "$tmpdir/data" - cp -a "$install_dir/tpl" "$tmpdir/tpl" + #cp -a "$install_dir/data" "$tmpdir/data" + #cp -a "$install_dir/tpl" "$tmpdir/tpl" # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" + ynh_setup_source --dest_dir="$install_dir" --keep="data tpl" - cp -a "$tmpdir/data" "$install_dir/" - cp -a -n "$tmpdir/tpl" "$install_dir/" # copy without erasing existing templates (from official source) + #cp -a "$tmpdir/data" "$install_dir/" + #cp -a -n "$tmpdir/tpl" "$install_dir/" # copy without erasing existing templates (from official source) # Remove the tmp directory securely - ynh_secure_remove --file="$tmpdir" + #ynh_secure_remove --file="$tmpdir" fi chmod -R o-rwx "$install_dir" chmod -R u+rwX $install_dir/{cache/,data/,pagecache/,tmp/} chown -R $app:www-data "$install_dir" -chmod 700 "$install_dir/data/config.json.php" +#chmod 700 "$install_dir/data/config.json.php" #================================================= # REAPPLY SYSTEM CONFIGURATIONS