mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Fix
This commit is contained in:
parent
dd9e7535a7
commit
3beeac20e1
2 changed files with 5 additions and 5 deletions
|
@ -122,10 +122,10 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE SUPERVISOR CONFIGURATION
|
# 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"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
supervisorctl reread && supervisorctl update
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
|
|
|
@ -254,7 +254,7 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||||
ynh_script_progression --message="Upgrading supervisor configuration..."
|
ynh_script_progression --message="Upgrading supervisor configuration..."
|
||||||
|
|
||||||
# Create a dedicated supervisor config
|
# Create a dedicated supervisor config
|
||||||
ynh_add_supervisor_config --service="${app}-horizon" --template=horizon.conf
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# 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_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
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue