Removing Unnecessary Steps in Guide

This commit is contained in:
notepadguyOfficial
2025-05-10 08:21:07 +00:00
parent 926ab1d5df
commit dba2663ae7
5 changed files with 119 additions and 189 deletions

23
instance.sh Normal file
View 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