mirror of
https://github.com/notepadguyOfficial/WSL-Debian-Docker-Azerothcore-Playerbots-Installation.git
synced 2026-01-12 16:58:35 +00:00
26 lines
600 B
Bash
26 lines
600 B
Bash
#!/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 |