Add README and LICENSE
This commit is contained in:
16
remove_wp.sh
Executable file
16
remove_wp.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user