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"