1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ztncui_ynh.git synced 2024-09-03 18:06:05 +02:00

[fix] node and npm paths

This commit is contained in:
tituspijean 2020-04-19 14:51:57 +02:00
parent fefa49295a
commit 92d0de9ac6
3 changed files with 11 additions and 11 deletions

View file

@ -8,7 +8,7 @@ User=ztncui
Group=ztncui Group=ztncui
Environment="__YNH_NODE_LOAD_PATH__" Environment="__YNH_NODE_LOAD_PATH__"
WorkingDirectory=__FINAL_PATH__/src/ WorkingDirectory=__FINAL_PATH__/src/
ExecStart=__YNH_NODE__/npm start ExecStart=__YNH_NPM__ start
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -156,10 +156,10 @@ ynh_script_progression --message="Performing Node app installation..." --time --
chown -R $app: $final_path chown -R $app: $final_path
pushd $final_path/src pushd $final_path/src
ynh_exec_as $app $ynh_npm --loglevel=error install node-gyp ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install node-gyp
ynh_exec_as $app $ynh_npm --loglevel=error install ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install
ynh_exec_as $app $ynh_npm --loglevel=error install argon2-cli ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install argon2-cli
ynh_exec_as $app $ynh_npm --loglevel=error audit fix ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error audit fix
popd popd
#================================================= #=================================================
@ -212,7 +212,7 @@ ynh_script_progression --message="Configuring a systemd service..." --time --wei
### - And the section "SETUP SYSTEMD" in the upgrade script ### - And the section "SETUP SYSTEMD" in the upgrade script
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config_vars --others_var="ynh_node_load_PATH ynh_node" ynh_add_systemd_config_vars --others_var="ynh_node_load_PATH ynh_npm"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View file

@ -136,10 +136,10 @@ ynh_script_progression --message="Performing Node app installation..." --time --
chown -R $app: $final_path chown -R $app: $final_path
pushd $final_path/src pushd $final_path/src
ynh_exec_as $app $ynh_npm --loglevel=error install node-gyp ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install node-gyp
ynh_exec_as $app $ynh_npm --loglevel=error install ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install
ynh_exec_as $app $ynh_npm --loglevel=error install argon2-cli ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install argon2-cli
ynh_exec_as $app $ynh_npm --loglevel=error audit fix ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error audit fix
popd popd
#================================================= #=================================================
@ -184,7 +184,7 @@ ynh_use_logrotate --non-append
ynh_script_progression --message="Upgrading systemd configuration..." --time --weight=1 ynh_script_progression --message="Upgrading systemd configuration..." --time --weight=1
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config_vars --others_var="ynh_node_load_PATH ynh_node" ynh_add_systemd_config_vars --others_var="ynh_node_load_PATH ynh_npm"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION