1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ethercalc_ynh.git synced 2024-09-03 18:26:36 +02:00
This commit is contained in:
ericgaspar 2020-11-03 16:18:14 +01:00
parent bcfc404b8e
commit 7848d96c55
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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