From adf741c8d747667d9613be4afcbb58cf4d13e82f Mon Sep 17 00:00:00 2001 From: Gaxinto Theodorio Date: Tue, 6 May 2025 22:58:30 -0400 Subject: [PATCH] feat: update restart container script --- restart_container.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/restart_container.sh b/restart_container.sh index 7d6515b..20bd3db 100755 --- a/restart_container.sh +++ b/restart_container.sh @@ -16,10 +16,14 @@ if [ ! -d "$TARGET_DIR" ]; then exit 1 fi +# Pull the latest changes from the repository +cd /home/geezo/docker_containers/ +git pull + # Navigate to the target directory cd "$TARGET_DIR" || { echo "Failed to change directory to $TARGET_DIR"; exit 1; } -git pull + # Run Docker Compose commands docker compose down