From bd51035dcb579328f56e38c20a48e1ee242dc6c6 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 28 Jan 2023 19:35:21 +0100 Subject: [PATCH] Do not attempt to build if binairies were downloaded --- scripts/install | 3 ++- scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index a68de89..20a1c8d 100755 --- a/scripts/install +++ b/scripts/install @@ -121,6 +121,7 @@ ynh_add_nginx_config #================================================= # INSTALL NOCODB #================================================= +if [ $YNH_ARCH != "arm64" || $YNH_ARCH != "amd64" ]; then ynh_script_progression --message="Installing NocoDB..." --weight=5 ynh_use_nodejs @@ -134,7 +135,7 @@ pushd $final_path ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --force popd - +fi #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index e178e2a..cd976c8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,6 +113,7 @@ ynh_add_nginx_config #================================================= # PERFORMING NOCODB UPGRADE #================================================= +if [ $YNH_ARCH != "arm64" || $YNH_ARCH != "amd64" ]; then ynh_script_progression --message="Upgrading NocoDB..." --weight=5 ynh_use_nodejs @@ -128,6 +129,7 @@ pushd $final_path ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --force popd +fi #================================================= # SETUP SYSTEMD