mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-08-02 15:03:30 +00:00
[PHP-FPM] Add sleep to loop
This commit is contained in:
parent
29bcd94b7c
commit
fa9c584912
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ done
|
|||
CONTAINER_ID=
|
||||
until [[ ! -z "${CONTAINER_ID}" ]] && [[ "${CONTAINER_ID}" =~ ^[[:alnum:]]*$ ]]; do
|
||||
CONTAINER_ID=$(curl --silent --insecure https://dockerapi/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" 2> /dev/null | jq -rc "select( .name | tostring | contains(\"mysql-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" 2> /dev/null)
|
||||
sleep 2
|
||||
done
|
||||
echo "MySQL @ ${CONTAINER_ID}"
|
||||
SQL_LOOP_C=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue