From 110714d321450d4579fc3bcc98be23bd7f792766 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 24 Apr 2022 00:50:53 +0200 Subject: [PATCH] Fix --- scripts/install | 9 +++++---- scripts/upgrade | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 68490fb..76d0cbc 100755 --- a/scripts/install +++ b/scripts/install @@ -181,17 +181,18 @@ ynh_secure_remove --file="$final_path/build_ldap" pushd "$final_path/live" ynh_use_nodejs ynh_exec_warn_less $ynh_npm install -g npm@7.24.2 - ynh_exec_warn_less $ynh_node genScript install | bash - ynh_exec_warn_less $ynh_node genScript compile | bash + npm ci popd pushd "$final_path/live/services/web" - ynh_use_nodejs - ynh_exec_warn_less $ynh_npm install -g npm + ynh_exec_warn_less npm run webpack:production + ynh_exec_warn_less npm install -g npm ynh_exec_warn_less npm install ldap-escape ynh_exec_warn_less npm install ldapts-search ynh_exec_warn_less npm install ldapts ynh_exec_warn_less npm install ldap-escape + ynh_exec_warn_less npm cache clean --force + ynh_secure_remove --file="$final_path/live/services/web/node_modules/.cache" popd chmod 750 "$final_path/live" diff --git a/scripts/upgrade b/scripts/upgrade index 700f798..bed789d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -169,17 +169,18 @@ then pushd "$final_path/live" ynh_use_nodejs ynh_exec_warn_less $ynh_npm install -g npm@7.24.2 - ynh_exec_warn_less $ynh_node genScript install | bash - ynh_exec_warn_less $ynh_node genScript compile | bash + npm ci popd pushd "$final_path/live/services/web" - ynh_use_nodejs - ynh_exec_warn_less $ynh_npm install -g npm + ynh_exec_warn_less npm run webpack:production + ynh_exec_warn_less npm install -g npm ynh_exec_warn_less npm install ldap-escape ynh_exec_warn_less npm install ldapts-search ynh_exec_warn_less npm install ldapts ynh_exec_warn_less npm install ldap-escape + ynh_exec_warn_less npm cache clean --force + ynh_secure_remove --file="$final_path/live/services/web/node_modules/.cache" popd chmod 750 "$final_path/live"