1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/timeoff_ynh.git synced 2024-09-03 20:35:59 +02:00
This commit is contained in:
ericgaspar 2021-08-31 12:36:43 +02:00
parent 577f994506
commit 58a25cfc07
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,8 @@ Environment="PORT=__PORT__"
Environment="PATH=__ENV_PATH__"
Environment="NODE_ENV=production"
WorkingDirectory=__FINALPATH__/
ExecStart=__FINALPATH__ start
ExecStart=__YNH_NODE__ bin/wwww
#start
Restart=always
[Install]

View file

@ -145,7 +145,7 @@ ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db
ynh_script_progression --message="Configuring a systemd service..."
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
ynh_replace_string --match_string="__YNH_NODE__" --replace_string="$ynh_node" --target_file="../conf/systemd.service"
ynh_add_systemd_config
#=================================================