mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update upgrade
This commit is contained in:
parent
e0b39d088e
commit
43eefeab07
1 changed files with 0 additions and 28 deletions
|
@ -46,31 +46,6 @@ if [ -z "${app_key:-}" ]; then
|
|||
ynh_app_setting_set --app="$app" --key=app_key --value="$app_key"
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions "0.9.0~ynh3" gt "$(ynh_read_manifest --manifest="/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" --manifest_key="version" || echo 1.0)" ; then
|
||||
ynh_script_progression --message="Ensuring upgrade compatibility to 0.9.0~ynh3..."
|
||||
|
||||
ynh_script_progression --message="Configuring a systemd service..."
|
||||
ynh_add_systemd_config --service="${app}-horizon" --template=horizon.conf
|
||||
fi
|
||||
|
||||
if dpkg --compare-versions "0.10.9~ynh2" gt "$(ynh_read_manifest --manifest="/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" --manifest_key="version" || echo 1.0)" ; then
|
||||
ynh_script_progression --message="Ensuring upgrade compatibility to 0.10.9~ynh2..."
|
||||
|
||||
ynh_script_progression --message="Stopping and removing the systemd service..."
|
||||
ynh_remove_systemd_config --service="${app}-horizon"
|
||||
|
||||
ynh_script_progression --message="Creating log file..."
|
||||
mkdir -p "/var/log/$app/"
|
||||
touch "/var/log/$app/${app}-horizon.log"
|
||||
chown -R $app: "/var/log/$app/"
|
||||
|
||||
ynh_script_progression --message="Configuring a supervisor service..."
|
||||
ynh_add_supervisor_config --service="${app}-horizon" --template=horizon.conf
|
||||
|
||||
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"
|
||||
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
|
||||
ynh_script_progression --message="Ensuring upgrade compatibility to 0.10.9~ynh3..."
|
||||
|
||||
|
@ -79,9 +54,6 @@ if dpkg --compare-versions "0.10.9~ynh3" gt "$(ynh_read_manifest --manifest="/et
|
|||
ynh_script_progression --message="Removing ${app}-horizon service..."
|
||||
yunohost service remove "${app}-horizon"
|
||||
fi
|
||||
|
||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||
yunohost service add "supervisor" --description="Supervisor daemon for $app" --log="/var/log/$app/${app}-horizon.log"
|
||||
fi
|
||||
|
||||
# Fix old email configs
|
||||
|
|
Loading…
Add table
Reference in a new issue