From dd93ff2b206a3b6d218ed3e4bfb0d6cd3a5df0ca Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 28 Nov 2021 23:20:45 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 42cc882..f21e597 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,17 +87,19 @@ then ynh_secure_remove --file="$final_path" # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" - - pushd $final_path - ynh_use_nodejs - ynh_exec_warn_less $ynh_npm install - popd fi chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +if [ "$upgrade_type" == "UPGRADE_APP" ] +then + pushd $final_path + ynh_use_nodejs + ynh_exec_warn_less $ynh_npm install + popd +fi #================================================= # NGINX CONFIGURATION #=================================================