exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

3-startdb.sh (371B)


      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