mirror of
https://github.com/YunoHost-Apps/digiscreen_ynh.git
synced 2024-09-03 18:26:15 +02:00
use variable for nodejs
This commit is contained in:
parent
4d1fb146fe
commit
4c1731791d
2 changed files with 2 additions and 9 deletions
|
@ -16,8 +16,8 @@ _digiscreen_build() {
|
||||||
echo "VUE_APP_GOOGLE_API_KEY=$googleYoutube" >> .env
|
echo "VUE_APP_GOOGLE_API_KEY=$googleYoutube" >> .env
|
||||||
|
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_npm install
|
"$ynh_npm" install
|
||||||
ynh_npm run build
|
"$ynh_npm" run build
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,13 +15,6 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_script_progression --message="Installing NodeJS..." --weight 3
|
ynh_script_progression --message="Installing NodeJS..." --weight 3
|
||||||
|
|
||||||
ynh_install_nodejs --nodejs_version="$nodejs_version"
|
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
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
Loading…
Add table
Reference in a new issue