feat: update restart container script

This commit is contained in:
Gaxinto Theodorio 2025-05-06 22:58:30 -04:00
parent 65e74730ad
commit adf741c8d7

View File

@ -16,10 +16,14 @@ if [ ! -d "$TARGET_DIR" ]; then
exit 1 exit 1
fi fi
# Pull the latest changes from the repository
cd /home/geezo/docker_containers/
git pull
# Navigate to the target directory # Navigate to the target directory
cd "$TARGET_DIR" || { echo "Failed to change directory to $TARGET_DIR"; exit 1; } cd "$TARGET_DIR" || { echo "Failed to change directory to $TARGET_DIR"; exit 1; }
git pull
# Run Docker Compose commands # Run Docker Compose commands
docker compose down docker compose down