feat: update restart container script
This commit is contained in:
parent
65e74730ad
commit
adf741c8d7
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user