2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: Apache-2.0
6 function create_user_and_database() {
10 echo "Creating database '$database'"
11 psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
12 CREATE USER $user WITH CREATEDB PASSWORD '$password';
13 CREATE DATABASE $database OWNER $user;
17 create_user_and_database arvados_sso_production arvados_sso pw
18 create_user_and_database arvados_production arvados pw