Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91312820
configure_pm.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 9, 22:01
Size
1 KB
Mime Type
text/x-shellscript
Expires
Mon, Nov 11, 22:01 (2 d)
Engine
blob
Format
Raw Data
Handle
22241131
Attached To
R2664 SHRINE MedCo Fork
configure_pm.sh
View Options
#!/bin/bash
echo "[i2b2/configure_pm.sh] Begin."
#########
# I2B2 PM (project management) setup
#
#########
source ./i2b2.rc
#########
echo "[i2b2/configure_pm.sh] Configuring i2b2 tables PM_* "
require "${SHRINE_IP}" "SHRINE_IP must be set"
require "${SHRINE_SSL_PORT}" "SHRINE_SSL_PORT must be set"
require "${SHRINE_USER}" "SHRINE_USER must be set"
require "${SHRINE_PASSWORD_CRYPTED}" "SHRINE_PASSWORD_CRYPTED must be set"
interpolate_file skel/configure_pm.sql "SHRINE_IP" "${SHRINE_IP}" | \
interpolate "SHRINE_SSL_PORT" "${SHRINE_SSL_PORT}" | \
interpolate "SHRINE_USER" "${SHRINE_USER}" | \
interpolate "SHRINE_PASSWORD_CRYPTED" "${SHRINE_PASSWORD_CRYPTED}" > configure_pm.sql.interpolated
#sudo -u postgres psql ${I2B2_DB_PM_USER} < configure_pm.sql.interpolated
#ITL modified to use jdbc to execute file against MSSQL server
java -cp ../../:../../sqljdbc.jar tsql configure_pm.sql.interpolated \
${I2B2_DB_PM_SERVER} ${I2B2_DB_PM_USER} ${I2B2_DB_PM_PASSWORD} ${I2B2_DB_PM_DATABASE}
echo "[i2b2/configure_pm.sh] Done."
Event Timeline
Log In to Comment