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:
parent
316ff75933
commit
88b7c14d87
3 changed files with 4 additions and 2 deletions
|
@ -7,9 +7,9 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__FINALPATH__
|
||||
ExecStart=__FINALPATH__/server/index.js
|
||||
ExecStart=node__FINALPATH__/server/index.js
|
||||
Restart=always
|
||||
Environment=PATH=/usr/bin:/usr/local/bin
|
||||
Environment=PATH=/usr/bin:/usr/local/bin:__NODEJS_PATH__
|
||||
Environment=NODE_ENV=production
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -199,6 +199,7 @@ ynh_print_info "Configuring a systemd service ..."
|
|||
### - And the section "SETUP SYSTEMD" in the upgrade script
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "../conf/systemd.service"
|
||||
ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -166,6 +166,7 @@ ynh_print_info "Upgrading logrotate configuration..."
|
|||
ynh_print_info "Upgrading systemd configuration..."
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "../conf/systemd.service"
|
||||
ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue