1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00
This commit is contained in:
ericgaspar 2021-12-10 17:55:35 +01:00
parent dd9e7535a7
commit 3beeac20e1
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 5 deletions

View file

@ -122,10 +122,10 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
#=================================================
# RESTORE SUPERVISOR CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the supervisor configuration..."
ynh_script_progression --message="Restoring the systemd configuration..."
ynh_restore_file --origin_path="/etc/supervisor/conf.d/${app}-horizon.conf"
supervisorctl reread && supervisorctl update
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable $app.service --quiet
#=================================================
# INTEGRATE SERVICE IN YUNOHOST

View file

@ -254,7 +254,7 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
ynh_script_progression --message="Upgrading supervisor configuration..."
# Create a dedicated supervisor config
ynh_add_supervisor_config --service="${app}-horizon" --template=horizon.conf
ynh_add_systemd_config
#=================================================
# GENERIC FINALIZATION
@ -278,7 +278,7 @@ yunohost service add "supervisor" --description="Supervisor daemon for $app" --l
#=================================================
ynh_script_progression --message="Starting a supervisor service..."
ynh_supervisor_action --service_name="${app}-horizon" --action="start" --log_path="systemd" --line_match="success: ${app}-horizon"
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd"
#=================================================
# RELOAD NGINX