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:
26
uninstall.sh
Normal file
26
uninstall.sh
Normal 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
|
||||
Reference in New Issue
Block a user