From 08613dee1029d9bf41a13c374c198a9840b1febc Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Tue, 25 Jan 2022 15:53:47 -0500 Subject: [PATCH] Update update_birdnet2.sh --- scripts/update_birdnet2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_birdnet2.sh b/scripts/update_birdnet2.sh index 298145a..ac0e9df 100755 --- a/scripts/update_birdnet2.sh +++ b/scripts/update_birdnet2.sh @@ -19,7 +19,7 @@ EOF fi # Stage 2 restarts the services -newservices=$(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install_services.sh | sort) +newservices=($(awk '/systemctl/ && !/php/ && !/caddy/ && !/target/ {print $3}' <(sed -e 's/--now//g' ${my_dir}/update_services.sh) | sort | uniq )) for i in ${newservices[@]};do sudo systemctl restart ${i} done