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:
yalh76 2020-05-24 00:35:56 +02:00
parent 1dffd68294
commit 616a1d064d
5 changed files with 14 additions and 5 deletions

View file

@ -18,6 +18,8 @@
upgrade=1 from_commit=10c3703567d1e9504ea4f298778464c7dd561470 upgrade=1 from_commit=10c3703567d1e9504ea4f298778464c7dd561470
# 0.10.9~ynh1 # 0.10.9~ynh1
upgrade=1 from_commit=8c5e710060da43a946336d66a30b9c311cfdbc37 upgrade=1 from_commit=8c5e710060da43a946336d66a30b9c311cfdbc37
# 0.10.9~ynh2
upgrade=1 from_commit=c81ed6b760a1a68b8993917e808434166766a37a
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
# This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version. # This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version.
@ -35,3 +37,5 @@ Notification=all
name=0.10.8 name=0.10.8
; commit=8c5e710060da43a946336d66a30b9c311cfdbc37 ; commit=8c5e710060da43a946336d66a30b9c311cfdbc37
name=0.10.9~ynh1 name=0.10.9~ynh1
; commit=c81ed6b760a1a68b8993917e808434166766a37a
name=0.10.9~ynh2

View file

@ -230,7 +230,7 @@ ynh_use_logrotate --logfile="/var/log/$app/${app}-horizon.log"
#================================================= #=================================================
ynh_print_info --message="Integrating service in YunoHost..." ynh_print_info --message="Integrating service in YunoHost..."
yunohost service add "supervisor" --description "${app}-horizon daemon for $app" --log "/var/log/$app/${app}-horizon.log" yunohost service add "supervisor" --description "Supervisor daemon for $app" --log "/var/log/$app/${app}-horizon.log"
#================================================= #=================================================
# START SUPERVISOR SERVICE # START SUPERVISOR SERVICE

View file

@ -34,8 +34,8 @@ ynh_print_info --message="Removing service integration in YunoHost..."
# Remove the service from the list of services known by Yunohost (added from `yunohost service add`) # Remove the service from the list of services known by Yunohost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status ${app}-horizon >/dev/null if ynh_exec_warn_less yunohost service status ${app}-horizon >/dev/null
then then
ynh_print_info --message="Removing ${app}-horizon service..." ynh_print_info --message="Removing supervisor service..."
yunohost service remove "${app}-horizon" yunohost service remove "supervisor"
fi fi
#================================================= #=================================================

View file

@ -139,7 +139,7 @@ supervisorctl reread && supervisorctl update
#================================================= #=================================================
ynh_print_info --message="Integrating service in YunoHost..." ynh_print_info --message="Integrating service in YunoHost..."
yunohost service add "supervisor" --log "/var/log/$app/${app}-horizon.log" yunohost service add "supervisor" --description "Supervisor daemon for $app" --log "/var/log/$app/${app}-horizon.log"
#================================================= #=================================================
# START SUPERVISOR SERVICE # START SUPERVISOR SERVICE

View file

@ -103,6 +103,11 @@ if dpkg --compare-versions "0.10.9~ynh2" gt "$(ynh_read_manifest --manifest="/et
ynh_supervisor_action --service_name="${app}-horizon" --action="start" --log_path="/var/log/$app/${app}-horizon.log" ynh_supervisor_action --service_name="${app}-horizon" --action="start" --log_path="/var/log/$app/${app}-horizon.log"
fi fi
if dpkg --compare-versions "0.10.9~ynh3" gt "$(ynh_read_manifest --manifest="/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" --manifest_key="version" || echo 1.0)" ; then
yunohost service remove "${app}-horizon"
yunohost service add "supervisor" --description "Supervisor daemon for $app" --log "/var/log/$app/${app}-horizon.log"
fi
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================