From 2dd4a6df5173d09430ea16d593d45dd9dad9f1e2 Mon Sep 17 00:00:00 2001 From: Kyle Robbertze Date: Fri, 15 May 2020 18:32:47 +0200 Subject: [PATCH] systemd units handled on their own --- install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install b/install index 68d650fdc..ae2b8a870 100755 --- a/install +++ b/install @@ -216,7 +216,7 @@ function systemInitInstall() { local old_style_unit_exists="f" # Migrate old style airtime unit exist if it exists if [[ -e $alt_path && ! -L $alt_path ]]; then - local old_service=$(echo $service_name | sed 's/libretime/airtime/') + local old_service=$(echo $service_name | sed 's/libretime/airtime/' | sed 's/-analyzer/_analyzer/') verbose "Old service $old_service already exists - migrating." loudCmd "systemctl disable ${old_service}.service" loudCmd "systemctl stop ${old_service}.service" @@ -793,7 +793,6 @@ will be moved to /etc/airtime/airtime.conf.tmp" rm -f /etc/init.d/airtime* rm -f /etc/init/airtime* rm -f /etc/default/airtime-celery - rm -f /etc/systemd/system/airtime* if [ "$apache" = "t" ]; then # If the user selects an "in-place" install or passes in a web root,