From 3779154f5a912a2633913f4c5f2384d0d426a7b3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 11 Oct 2020 16:28:28 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 63453f1..5ed31b6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -55,7 +55,7 @@ then tmpdir="$(mktemp -d)" # Backup the config file in the temp dir - cp -a "$final_path/config.json" "$tmpdir/config.json" + cp -a "$final_path/static/config.json" "$tmpdir/config.json" # Remove the app directory securely ynh_secure_remove --file=$final_path @@ -64,7 +64,7 @@ then ynh_setup_source --dest_dir=$final_path #Copy the admin saved settings from tmp directory to final path - cp -a "$tmpdir/config.json" "$final_path/config.json" + cp -a "$tmpdir/config.json" "$final_path/static/config.json" # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir"