mirror of
https://github.com/YunoHost-Apps/ethercalc_ynh.git
synced 2024-09-03 18:26:36 +02:00
Fix
This commit is contained in:
parent
bcfc404b8e
commit
7848d96c55
2 changed files with 5 additions and 3 deletions
|
@ -9,7 +9,7 @@ Group=__APP__
|
|||
WorkingDirectory=__FINALPATH__
|
||||
Environment="PATH=__ENV_PATH__"
|
||||
Environment="NODE_ENV=production"
|
||||
ExecStart=__FINALPATH__/ethercalc --port __PORT__ --expire __EXPIRE__
|
||||
ExecStart=__YNH_NPM__ ethercalc --port __PORT__ --expire __EXPIRE__
|
||||
RuntimeMaxSec=86400
|
||||
Restart=always
|
||||
|
||||
|
|
|
@ -110,8 +110,10 @@ popd || ynh_die
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
ynh_replace_string --match_string="__PORT__" --replace_string=$port --target_file=../conf/systemd.service
|
||||
ynh_replace_string --match_string="__EXPIRE__" --replace_string=$expire --target_file=../conf/systemd.service
|
||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
||||
ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service"
|
||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/systemd.service"
|
||||
ynh_replace_string --match_string="__EXPIRE__" --replace_string="$expire" --target_file="../conf/systemd.service"
|
||||
|
||||
ynh_add_systemd_config
|
||||
|
||||
|
|
Loading…
Reference in a new issue