From 9a5169cab11baad4b3c13e1a5775546a4835d2b0 Mon Sep 17 00:00:00 2001 From: JoshuaDodds Date: Fri, 3 May 2024 08:21:10 +0200 Subject: [PATCH] [ skip ci ] kill running service before update --- sgc-simple-gitops-controller.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sgc-simple-gitops-controller.sh b/sgc-simple-gitops-controller.sh index eb01a0c..c68d482 100755 --- a/sgc-simple-gitops-controller.sh +++ b/sgc-simple-gitops-controller.sh @@ -28,6 +28,7 @@ git config --global user.name "SGC Bot" echo -e "$SVC_NAME: Checking if container runtime needs an update..." if diff -rq /app/ gitops-managed-repos/cerbomoticzgx/ | grep -vE 'pycache|env|cache|token|gitops|png|db'; then echo -e "$SVC_NAME: Updating container runtime..." + pkill -f python3 rsync -qav --exclude 'log.txt' --exclude '__pycache__' /app/gitops-managed-repos/cerbomoticzgx/ /app/ else echo -e "$SVC_NAME: Container runtime is up to date."