mirror of
https://github.com/YunoHost-Apps/distbin_ynh.git
synced 2024-09-03 18:26:10 +02:00
Start service earlier
This commit is contained in:
parent
5019cb5e80
commit
fc5badaba6
3 changed files with 4 additions and 4 deletions
|
@ -208,6 +208,7 @@ ynh_replace_string "res.writeHead(200)" "res.writeHead(200, {\"content-type\": \
|
|||
# Create a dedicated systemd config
|
||||
ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service"
|
||||
ynh_add_systemd_config
|
||||
systemctl start $app
|
||||
|
||||
#=================================================
|
||||
# SETUP APPLICATION WITH CURL
|
||||
|
@ -315,5 +316,4 @@ fi
|
|||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
||||
systemctl reload nginx
|
||||
systemctl start $app
|
||||
systemctl reload nginx
|
|
@ -105,6 +105,7 @@ npm install -g ts-node
|
|||
|
||||
ynh_restore_file "/etc/systemd/system/$app.service"
|
||||
systemctl enable $app.service
|
||||
systemctl start $app
|
||||
|
||||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
|
@ -132,4 +133,3 @@ ynh_restore_file "/etc/logrotate.d/$app"
|
|||
|
||||
#systemctl reload php5-fpm
|
||||
systemctl reload nginx
|
||||
systemctl start $app
|
||||
|
|
|
@ -136,6 +136,7 @@ ynh_use_logrotate --non-append
|
|||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
systemctl start $app
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
@ -166,4 +167,3 @@ fi
|
|||
#=================================================
|
||||
|
||||
systemctl reload nginx
|
||||
systemctl start $app
|
||||
|
|
Loading…
Add table
Reference in a new issue