merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

3-startdb.sh (578B)


      1 #!/bin/bash
      2 set -evux
      3 
      4 PG_BIN=$(pg_config --bindir)
      5 PG_ETC=$(pg_config --sharedir | sed 's|/usr/share/postgresql|/etc/postgresql|')
      6 export PGPORT=5432
      7 sudo -u postgres "${PG_BIN}/pg_ctl" \
      8   start \
      9   -D ${PG_ETC}/main \
     10   -o "-h localhost -p $PGPORT"
     11 sleep 10
     12 sudo -u postgres createuser -p "$PGPORT" root -s -w
     13 sudo -u postgres createdb -p "$PGPORT" -O root talercheck
     14 
     15 # taler-unified-setup resets the merchant schema before every test.  Seed a
     16 # newly-created database once so that the first reset has tables to drop.
     17 taler-merchant-dbinit -c src/testing/test_template.conf