From 76a59954c3ebeea35411459f4a985eaf0aa870ee Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Tue, 25 Jan 2022 08:32:59 -0500 Subject: [PATCH] Update restart_services.sh --- scripts/restart_services.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restart_services.sh b/scripts/restart_services.sh index 8bd1064..37227ac 100755 --- a/scripts/restart_services.sh +++ b/scripts/restart_services.sh @@ -7,7 +7,7 @@ sudo systemctl stop birdnet_recording.service sudo rm -rf ${RECS_DIR}/$(date +%B-%Y/%d-%A)/* sudo systemctl start birdnet_recording.service -services=($(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install_services.sh | sort)) +services=($(awk '/systemctl/ && !/php/ && !/caddy/ && !/target/ {print $3}' <(sed -e 's/--now//g' ${my_dir}/update_services.sh) | sort | uniq )) for i in "${services[@]}";do sudo systemctl restart "${i}"