Skip to content

Commit

Permalink
[ skip ci ] kill running service before update
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaDodds committed May 3, 2024
1 parent 9d4f526 commit 9a5169c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sgc-simple-gitops-controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 9a5169c

Please sign in to comment.