From 61a45f4b6393c4c81e6fc5603a53c2925faeb577 Mon Sep 17 00:00:00 2001 From: Ringoshiro <137809157+Ringoshiroku@users.noreply.github.com> Date: Sat, 18 Oct 2025 21:40:16 +0700 Subject: [PATCH] changed start.sh --- Binary Exploitation/BeeChat/src/start.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Binary Exploitation/BeeChat/src/start.sh b/Binary Exploitation/BeeChat/src/start.sh index 0a277c1..cfbfac6 100755 --- a/Binary Exploitation/BeeChat/src/start.sh +++ b/Binary Exploitation/BeeChat/src/start.sh @@ -1 +1,16 @@ -docker compose down -v --rmi all; docker compose up --build -d --force-recreate +#!/usr/bin/env bash +set -euxo pipefail +cd "$(dirname "$0")" +export COMPOSE_PROJECT_NAME=beechat +if docker compose version >/dev/null 2>&1; then + DC="docker compose" +elif command -v docker-compose >/dev/null; then + DC="docker-compose" +else + echo "Docker Compose not found" >&2 + exit 127 +fi +$DC down -v --rmi all --remove-orphans || true +$DC pull || true +$DC build --pull +$DC up -d --force-recreate --renew-anon-volumes