Browse Source

* use full database container name for detect id of db container for mariadb-dump operations

uvicorn
dimti 4 days ago
parent
commit
57c56567cf
  1. 2
      bash/dump.sh

2
bash/dump.sh

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
CONTAINER=$(docker ps | grep db | awk '{print $1}')
CONTAINER=$(docker ps | grep mariadb | awk '{print $1}')
if [[ -z "${CONTAINER}" ]]; then if [[ -z "${CONTAINER}" ]]; then
echo "Unable to find container: db" echo "Unable to find container: db"

Loading…
Cancel
Save