mirror of
https://github.com/notepadguyOfficial/WSL-Debian-Docker-Azerothcore-Playerbots-Installation.git
synced 2026-01-13 01:08:36 +00:00
Add initial setup for Azerothcore with Docker and environment configuration
This commit is contained in:
23
start_stop_acore.sh
Normal file
23
start_stop_acore.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
manage_docker_containers() {
|
||||
containers=("ac-worldserver" "ac-authserver" "ac-database")
|
||||
|
||||
all_running=true
|
||||
for container in "${containers[@]}"; do
|
||||
if ! docker ps --format '{{.Names}}' | grep -q "^${container}$"; then
|
||||
all_running=false
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if $all_running; then
|
||||
echo "Stopping containers: ${containers[*]}"
|
||||
docker stop "${containers[@]}"
|
||||
else
|
||||
echo "Starting containers: ${containers[*]}"
|
||||
docker start "${containers[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
manage_docker_containers
|
||||
Reference in New Issue
Block a user