From 7aa88d2366182bee3dd418fcb21abb9c7b1d20c4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 28 Jan 2021 13:55:06 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 07bc740..d8c7436 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,7 +94,7 @@ then tmpdir="$(mktemp -d)" # Backup the config file in the temp dir - cp -a "$final_path/dist/user.css" "$tmpdir/user.css" + cp -a "$final_path/public/dist/user.css" "$tmpdir/user.css" # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -103,14 +103,11 @@ then ynh_setup_source --dest_dir="$final_path" # Copy the admin saved settings from tmp directory to final path - cp -a "$tmpdiruser.css" "$final_path/config/dist/user.css" + cp -a "$tmpdiruser.css" "$final_path/public/dist/user.css" # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir" - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" - ynh_install_composer --workdir="$final_path" --install_args="--prefer-source --no-dev" pushd $final_path