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:
parent
67e2debc5a
commit
00038ad55c
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue