1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00
This commit is contained in:
yalh76 2019-03-07 03:58:49 +01:00
parent 7dad072155
commit c6fd2bf9af
3 changed files with 3 additions and 1 deletions

View file

@ -9,7 +9,7 @@ User=__APP__
Group=__APP__
EnvironmentFile=__FINALPATH__/.env
WorkingDirectory=__FINALPATH__
ExecStart=/opt/node_n/bin/node __FINALPATH__/main.js
ExecStart=__NODEJS_PATH__/node __FINALPATH__/main.js
Restart=on-failure
#StartLimitInterval=86400
#StartLimitBurst=5

View file

@ -189,6 +189,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
#=================================================

View file

@ -72,6 +72,7 @@ if ynh_version_gt "0.77-2" "${previous_version}" ; then
ynh_install_nodejs 8.15.1
ynh_use_nodejs
# Create a dedicated systemd config
ynh_replace_string "__NODEJS_PATH__" "$nodejs_path" "../conf/systemd.service"
ynh_add_systemd_config
# Create a dedicated .env config
ynh_backup_if_checksum_is_different "$final_path/.env"