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