Browse Source

fix: [vps] support 'docker compose' naming convention for finding mysql container

journalctl_limit
Valentin Lab 1 year ago
parent
commit
e25cec4c05
  1. 6
      bin/vps

6
bin/vps

@ -272,7 +272,11 @@ mailcow:install-backup() {
return 1
}
MYSQL_CONTAINER=${MYSQL_CONTAINER:-mailcowdockerized_mysql-mailcow_1}
if docker compose >/dev/null 2>&1; then
MYSQL_CONTAINER=${MYSQL_CONTAINER:-mailcowdockerized-mysql-mailcow-1}
else
MYSQL_CONTAINER=${MYSQL_CONTAINER:-mailcowdockerized_mysql-mailcow_1}
fi
container_id=$(docker ps -f name="$MYSQL_CONTAINER" --format "{{.ID}}")
if [ -z "$container_id" ]; then
err "Couldn't find docker container named '$MYSQL_CONTAINER'."

Loading…
Cancel
Save