Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 40 lines (32 sloc) 0.748 kb
#!/bin/bash
export PATH=$PATH:/usr/bin:/usr/local/bin
pushd .
cd client/source
psql \
-X -A \
-h localhost \
-U admin \
-t \
-F ' ' \
--quiet \
-c "select org_name as db, org_dbserver_name as server from xt.org where org_active = 't'" \
global | while read -a Record; do
db=${Record[0]}
server=${Record[1]}
psql -U admin -h $server -d $db -f init_script.sql
done
popd
cd orm/installer
psql \
-X -A \
-h localhost \
-U admin \
-t \
-F ' ' \
--quiet \
-c "select org_name as db, org_dbserver_name as server from xt.org where org_active = 't'" \
global | while read -a Record; do
db=${Record[0]}
server=${Record[1]}
./installer.js -cli -h $server -d $db -u admin -p 5432 -P admin --path ../../client/orm
done
Jump to Line
Something went wrong with that request. Please try again.