1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/digiscreen_ynh.git synced 2024-09-03 18:26:15 +02:00

Use major nodejs version , use pushd/popd instead of subshell

This commit is contained in:
Félix Piédallu 2023-10-03 14:20:12 +02:00
parent 67e2debc5a
commit 00038ad55c

View file

@ -4,22 +4,21 @@
# COMMON VARIABLES
#=================================================
nodejs_version="14.19.3"
nodejs_version="14"
#=================================================
# PERSONAL HELPERS
#=================================================
_digiscreen_build() {
(
cd "$install_dir/sources"
pushd "$install_dir/sources"
echo "VUE_APP_PIXABAY_API_KEY=$pixabay" >> .env
echo "VUE_APP_GOOGLE_API_KEY=$googleYoutube" >> .env
ynh_use_nodejs
ynh_npm install
ynh_npm run build
)
popd
}
#=================================================