fix
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||
COMPOSE_FILE="$SCRIPT_DIR/docker-compose.yml"
|
||||
|
||||
if [ "${DELETE_MAIL_DATA:-}" != "YES" ]; then
|
||||
echo "This removes the mailserver container and all mail volumes." >&2
|
||||
echo "Run: DELETE_MAIL_DATA=YES ./destroy.sh" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker compose -f "$COMPOSE_FILE" down --remove-orphans
|
||||
docker volume rm \
|
||||
email_server_mail-data \
|
||||
email_server_mail-state \
|
||||
email_server_mail-logs 2>/dev/null || true
|
||||
echo "Old mail server and mail data removed."
|
||||
Reference in New Issue
Block a user