Page MenuHomec4science

vm-clean.sh
No OneTemporary

File Metadata

Created
Wed, Nov 6, 01:33

vm-clean.sh

#!/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