17 lines
438 B
Bash
Executable File
17 lines
438 B
Bash
Executable File
#!/bin/bash
|
|
DB_NAME='wordpress_db'
|
|
DB_PASS='mysupersecurepass'
|
|
DB_USER='justbeauniqueuser'
|
|
POD_NAME='wordpress_with_mariadb'
|
|
CONTAINER_NAME_DB='wordpress_db'
|
|
CONTAINER_NAME_WP='wordpress'
|
|
|
|
# Stop and remove containers
|
|
podman stop $CONTAINER_NAME_DB $CONTAINER_NAME_WP 2>/dev/null || true
|
|
podman rm $CONTAINER_NAME_DB $CONTAINER_NAME_WP 2>/dev/null || true
|
|
|
|
# Remove pod
|
|
podman pod rm -f $POD_NAME 2>/dev/null || true
|
|
|
|
echo "removed pods"
|