Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79674048
vm-clean.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
Tue, Aug 27, 16:41
Size
729 B
Mime Type
text/x-shellscript
Expires
Thu, Aug 29, 16:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20219132
Attached To
R2664 SHRINE MedCo Fork
vm-clean.sh
View Options
#!/bin/bash
#########
# Clean previous i2b2/shrine installation.
# This script can be run even without a previous installation attempt.
#
# http://open.med.harvard.edu/display/SHRINE
#
# Configuration params
#
# @see i2b2/i2b2.rc
# @see shrine/shrine.rc
#
#########
echo
"[vm-clean.sh] Cleaning i2b2, restoring to pre-shrine-install state."
if
[
"$I2B2_RDBMS"
==
"oracle"
-o
"$I2B2_RDBMS"
==
"postgres"
]
then
cd
i2b2
chmod +x *.sh
cd
$I2B2_RDBMS
chmod +x *.sh
./clean.sh
cd
../../
else
echo
"[vm-clean.sh] WARNING: I2B2_RDBMS not set, skipping i2b2 cleanup."
fi
echo
"[vm-clean.sh] Cleaning shrine, restoring to pre-shrine-install state."
cd
shrine
chmod +x *.sh
./clean.sh
cd
..
echo
"[vm-clean.sh] Done."
Event Timeline
Log In to Comment