mirror of
https://github.com/YunoHost-Apps/ztncui_ynh.git
synced 2024-09-03 18:06:05 +02:00
[fix] unbound variable
This commit is contained in:
parent
b48dc68fd1
commit
26fbbfa13d
3 changed files with 7 additions and 3 deletions
|
@ -6,7 +6,7 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
User=ztncui
|
User=ztncui
|
||||||
Group=ztncui
|
Group=ztncui
|
||||||
Environment="PATH=__PATH__"
|
Environment="PATH=__ENV_PATH__"
|
||||||
WorkingDirectory=__FINALPATH__/src/
|
WorkingDirectory=__FINALPATH__/src/
|
||||||
ExecStart=__NODEJS_PATH__/npm start
|
ExecStart=__NODEJS_PATH__/npm start
|
||||||
|
|
||||||
|
|
|
@ -211,8 +211,10 @@ ynh_script_progression --message="Configuring a systemd service..." --time --wei
|
||||||
### - As well as the section "RESTORE SYSTEMD" in the restore script
|
### - As well as the section "RESTORE SYSTEMD" in the restore script
|
||||||
### - And the section "SETUP SYSTEMD" in the upgrade script
|
### - And the section "SETUP SYSTEMD" in the upgrade script
|
||||||
|
|
||||||
|
# Store current PATH
|
||||||
|
env_path=$PATH
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config_vars --others_var="path nodejs_path"
|
ynh_add_systemd_config_vars --others_var="env_path nodejs_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -183,8 +183,10 @@ 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
|
||||||
|
|
||||||
|
# Store current PATH
|
||||||
|
env_path=$PATH
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config_vars --others_var="path nodejs_path"
|
ynh_add_systemd_config_vars --others_var="env_path nodejs_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue