SHARE
TWEET

Untitled

a guest Nov 8th, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   shellHook = ''
  2.     export PGDATA=$PWD/postgres_data
  3.     export PGHOST=$PWD/postgres
  4.     export LOG_PATH=$PWD/postgres/LOG
  5.     export PGDATABASE=postgres
  6.     export DATABASE_URL="postgresql:///postgres?host=$PGHOST"
  7.     if [ ! -d $PGHOST ]; then
  8.       mkdir -p $PGHOST
  9.     fi
  10.     if [ ! -d $PGDATA ]; then
  11.       echo 'Initializing postgresql database...'
  12.       initdb $PGDATA --auth=trust >/dev/null
  13.     fi
  14.     pg_ctl start -l $LOG_PATH -o "-c listen_addresses= -c unix_socket_directories=$PGHOST"
  15.   '';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top