From 7ab6eb3006859a724d4679ad39060b74ae1d3553 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:04:57 +0100 Subject: [PATCH] fix service name --- conf/{__APP__-beat.service => bookwyrm-beat.service} | 0 conf/{__APP__-server.service => bookwyrm-server.service} | 0 conf/{__APP__-worker.service => bookwyrm-worker.service} | 0 conf/{__APP__.target => bookwyrm.target} | 0 scripts/install | 8 ++++---- scripts/upgrade | 6 +++--- 6 files changed, 7 insertions(+), 7 deletions(-) rename conf/{__APP__-beat.service => bookwyrm-beat.service} (100%) rename conf/{__APP__-server.service => bookwyrm-server.service} (100%) rename conf/{__APP__-worker.service => bookwyrm-worker.service} (100%) rename conf/{__APP__.target => bookwyrm.target} (100%) diff --git a/conf/__APP__-beat.service b/conf/bookwyrm-beat.service similarity index 100% rename from conf/__APP__-beat.service rename to conf/bookwyrm-beat.service diff --git a/conf/__APP__-server.service b/conf/bookwyrm-server.service similarity index 100% rename from conf/__APP__-server.service rename to conf/bookwyrm-server.service diff --git a/conf/__APP__-worker.service b/conf/bookwyrm-worker.service similarity index 100% rename from conf/__APP__-worker.service rename to conf/bookwyrm-worker.service diff --git a/conf/__APP__.target b/conf/bookwyrm.target similarity index 100% rename from conf/__APP__.target rename to conf/bookwyrm.target diff --git a/scripts/install b/scripts/install index 5131411..0279e2d 100755 --- a/scripts/install +++ b/scripts/install @@ -75,12 +75,12 @@ chown -R $app:www-data /var/log/$app/ #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_add_config --template="../conf/$app.target" --destination="/etc/systemd/system/$app.target" +ynh_add_config --template="../conf/bookwyrm.target" --destination="/etc/systemd/system/$app.target" # Create a dedicated systemd config -ynh_add_systemd_config --service="$app-server" --template="$app-server.service" -ynh_add_systemd_config --service="$app-worker" --template="$app-worker.service" -ynh_add_systemd_config --service="$app-beat" --template="$app-beat.service" +ynh_add_systemd_config --service="$app-server" --template="bookwyrm-server.service" +ynh_add_systemd_config --service="$app-worker" --template="bookwyrm-worker.service" +ynh_add_systemd_config --service="$app-beat" --template="bookwyrm-beat.service" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index c0566f6..cc961c9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -92,9 +92,9 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 ynh_add_config --template="../conf/bookwyrm.target" --destination="/etc/systemd/system/$app.target" # Create a dedicated systemd config -ynh_add_systemd_config --service="$app-server" --template="$app-server.service" -ynh_add_systemd_config --service="$app-worker" --template="$app-worker.service" -ynh_add_systemd_config --service="$app-beat" --template="$app-beat.service" +ynh_add_systemd_config --service="$app-server" --template="bookwyrm-server.service" +ynh_add_systemd_config --service="$app-worker" --template="bookwyrm-worker.service" +ynh_add_systemd_config --service="$app-beat" --template="bookwyrm-beat.service" #================================================= # GENERIC FINALIZATION