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 #=================================================