diff --git a/launch.sh b/launch.sh index 8b9c575..5af7f93 100755 --- a/launch.sh +++ b/launch.sh @@ -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() {