Add more functionality: list and delete sites

This commit is contained in:
2025-01-01 17:56:45 +09:00
parent d9a5322151
commit db655fb818
8 changed files with 329 additions and 188 deletions
+2 -4
View File
@@ -4,10 +4,8 @@ wpcli() {
docker compose run --rm wpcli "$@"
}
echo "Waiting for MySQL to be ready..."
#while ! docker exec db_${DOMAIN} mysqladmin ping -h localhost --silent; do
# sleep 1
#done
echo "Waiting for MariaDB to be ready..."
while [ "$(docker inspect --format='{{.State.Health.Status}}' db_${DOMAIN})" != "healthy" ]; do
echo "MariaDB is not healthy yet. Retrying..."
sleep 5