move scripts
This commit is contained in:
16
scripts/remove_wp.sh
Executable file
16
scripts/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 || true
|
||||
podman rm $CONTAINER_NAME_DB $CONTAINER_NAME_WP || true
|
||||
|
||||
# Remove pod
|
||||
podman pod rm -f $POD_NAME || true
|
||||
|
||||
echo "removed pods"
|
||||
Reference in New Issue
Block a user