1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wikijs_ynh.git synced 2024-09-03 20:36:09 +02:00

Fix service

This commit is contained in:
yalh76 2019-02-21 18:56:15 +01:00
parent 316ff75933
commit 88b7c14d87
3 changed files with 4 additions and 2 deletions

View file

@ -7,9 +7,9 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__FINALPATH__ WorkingDirectory=__FINALPATH__
ExecStart=__FINALPATH__/server/index.js ExecStart=node__FINALPATH__/server/index.js
Restart=always Restart=always
Environment=PATH=/usr/bin:/usr/local/bin Environment=PATH=/usr/bin:/usr/local/bin:__NODEJS_PATH__
Environment=NODE_ENV=production Environment=NODE_ENV=production
[Install] [Install]

View file

@ -199,6 +199,7 @@ ynh_print_info "Configuring a systemd service ..."
### - 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_replace_string "__NODEJS_PATH__" "$nodejs_path" "../conf/systemd.service"
ynh_add_systemd_config ynh_add_systemd_config
#================================================= #=================================================

View file

@ -166,6 +166,7 @@ ynh_print_info "Upgrading logrotate configuration..."
ynh_print_info "Upgrading systemd configuration..." ynh_print_info "Upgrading systemd configuration..."
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "../conf/systemd.service"
ynh_add_systemd_config ynh_add_systemd_config
#================================================= #=================================================