From 27f549abd980a49be8fecb13db4470c6a8ca84ba Mon Sep 17 00:00:00 2001 From: Neko Nekowazarashi Date: Mon, 29 May 2023 18:29:54 +0700 Subject: [PATCH] perbaiki npm lagi --- scripts/change_url | 4 ++-- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 759de90..134f446 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -42,9 +42,9 @@ fi ynh_script_progression --message="Rebuilding the app..." --weight=1 ynh_use_nodejs -ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install +ynh_exec_as $app $ynh_npm install npx next telemetry disable -ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build +ynh_exec_as $app $ynh_npm build #================================================= # GENERIC FINALISATION diff --git a/scripts/install b/scripts/install index 85963f7..587981d 100755 --- a/scripts/install +++ b/scripts/install @@ -56,9 +56,9 @@ chown $app:$app "$install_dir/.env.local" ynh_script_progression --message="Building the app..." --weight=1 ynh_use_nodejs -ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install +ynh_exec_as $app $ynh_npm install npx next telemetry disable -ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build +ynh_exec_as $app $ynh_npm build #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 938949a..974fffd 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -117,9 +117,9 @@ chown $app:$app "$install_dir/.env.local" ynh_script_progression --message="Rebuilding the app..." --weight=1 ynh_use_nodejs -ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install +ynh_exec_as $app $ynh_npm install npx next telemetry disable -ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build +ynh_exec_as $app $ynh_npm build #================================================= # START SYSTEMD SERVICE