init-user-db.sh 646 B

123456789101112131415161718
  1. #!/bin/bash
  2. set -e
  3. psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
  4. create database dendrite_account;
  5. create database dendrite_applicationservice;
  6. create database dendrite_device;
  7. create database dendrite_directapi;
  8. create database dendrite_encryptapi;
  9. create database dendrite_federationsender;
  10. create database dendrite_naffka;
  11. create database dendrite_presence;
  12. create database dendrite_publicroomsapi;
  13. create database dendrite_pushapi;
  14. create database dendrite_roomserver;
  15. create database dendrite_serverkey;
  16. create database dendrite_syncapi;
  17. EOSQL