From 4c1731791dc3e8c97f0012a1976443f7445a907d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 3 Oct 2023 14:42:26 +0200 Subject: [PATCH] use variable for nodejs --- scripts/_common.sh | 4 ++-- scripts/install | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8511675..200b4ff 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,8 +16,8 @@ _digiscreen_build() { echo "VUE_APP_GOOGLE_API_KEY=$googleYoutube" >> .env ynh_use_nodejs - ynh_npm install - ynh_npm run build + "$ynh_npm" install + "$ynh_npm" run build popd } diff --git a/scripts/install b/scripts/install index eeea10a..042bf33 100644 --- a/scripts/install +++ b/scripts/install @@ -15,13 +15,6 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Installing NodeJS..." --weight 3 ynh_install_nodejs --nodejs_version="$nodejs_version" -ynh_use_nodejs -ynh_print_info "ynh_npm alias=$(which ynh_npm || true)" -ynh_print_info "ynh_npm var=$ynh_npm" -ynh_print_info "content of nodejs bin dir : $(ls -lah /opt/node_n/n/versions/node/$nodejs_version/bin || true)" -ynh_exec_warn node --version || true -ynh_exec_warn npm --version || true - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE