From e7fe467f3dca320c15b3a3bda3e46538bd716367 Mon Sep 17 00:00:00 2001 From: David Sterry Date: Sun, 12 Dec 2021 23:40:36 -0800 Subject: [PATCH] source another ynh_add_swap and fix service name in upgrade --- scripts/restore | 1 + scripts/upgrade | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index b23652b..185baa9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -8,6 +8,7 @@ # Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh +source ../settings/scripts/ynh_add_swap source /usr/share/yunohost/helpers #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index d3d4cdb..a882c0b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -204,8 +204,8 @@ chown $app:$app "$diaspora_toml" ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config --service="$app-web" --template="glitchsoc-web.service" -ynh_add_systemd_config --service="$app-sidekiq" --template="glitchsoc-sidekiq.service" +ynh_add_systemd_config --service="$app-web" --template="acropolis-web.service" +ynh_add_systemd_config --service="$app-sidekiq" --template="acropolis-sidekiq.service" ynh_script_progression --message="Upgrading acropolis..."