Add initial setup for Azerothcore with Docker and environment configuration

This commit is contained in:
notepadguyOfficial
2025-02-11 16:06:15 +08:00
parent a65bb95553
commit 1620931318
10 changed files with 461 additions and 2 deletions

26
uninstall.sh Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
function ask_user() {
read -p "$1 (y/n): " choice
case "$choice" in
y|Y ) return 0;;
* ) return 1;;
esac
}
if ask_user "This will uninstall azerothcore, continue?"; then
cd azerothcore-wotlk
docker compose down
docker image prune -a
if ask_user "Delete volumes? If you keep the volumes, a reinstall will only update."; then
docker system prune -a
docker volume rm azerothcore-wotlk_ac-client-data
docker volume rm azerothcore-wotlk_ac-database
fi
cd .. && rm -rf azerothcore-wotlk wotlk/*
exit 0
fi