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

Update install

This commit is contained in:
Thomas 2023-03-02 18:22:19 +01:00 committed by GitHub
parent fcd10cfb66
commit 35fd7388c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,6 +94,11 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1
# Create a dedicated systemd config
ynh_add_systemd_config --service="${app}" --template="${app}.service"
ynh_add_systemd_config --service="${app}_workers" --template="${app}_workers.service"
mkdir /etc/systemd/system/${app}.service.d/
chown $app: /etc/systemd/system/${app}.service.d/
@ -108,9 +113,8 @@ ynh_add_config --template="../conf/variables_fittrackee_workers.conf" --destinat
chmod 600 /etc/systemd/system/${app}_workers.service.d/variables.conf
chown $app: "/etc/systemd/system/${app}_workers.service.d/variables.conf"
# Create a dedicated systemd config
ynh_add_systemd_config --service="${app}" --template="${app}.service"
ynh_add_systemd_config --service="${app}_workers" --template="${app}_workers.service"
systemctl daemon-reload
#=================================================
# GENERIC FINALIZATION
@ -131,7 +135,6 @@ ynh_script_progression --message="Starting systemd services..." --weight=15
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="systemd" --line_match="ready"
systemctl daemon-reload
#=================================================
# END OF SCRIPT
#=================================================