[FIX] Missing postgreSQL version for container creation

This commit is contained in:
Olivier DOSSMANN 2016-05-11 18:21:57 +02:00
parent b70552b8f8
commit 4d0f3a0fb2

View File

@ -268,7 +268,7 @@ psql() {
$docker_cmd start ${POSTGRES_DOCKER_NAME}
sleep 4 # wait postgreSQL database to be fully launched
fi
$docker_cmd run -it --link ${POSTGRES_DOCKER_NAME}:db --rm postgres sh -c 'exec psql -h "$DB_PORT_5432_TCP_ADDR" -p "$DB_PORT_5432_TCP_PORT" -U postgres' || error_and_quit "Failed to connect to postgreSQL Docker container."
$docker_cmd run -it --link ${POSTGRES_DOCKER_NAME}:db --rm "postgres:${POSTGRES_VERSION}" sh -c 'exec psql -h "$DB_PORT_5432_TCP_ADDR" -p "$DB_PORT_5432_TCP_PORT" -U postgres' || error_and_quit "Failed to connect to postgreSQL Docker container."
}
restore() {