mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
fix node
This commit is contained in:
parent
7dad072155
commit
c6fd2bf9af
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue