aboutsummaryrefslogtreecommitdiffstats
path: root/installation/sdnc/src/main/scripts/startODL.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installation/sdnc/src/main/scripts/startODL.sh')
-rwxr-xr-xinstallation/sdnc/src/main/scripts/startODL.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh
index 5e294ddf..81e6d7f1 100755
--- a/installation/sdnc/src/main/scripts/startODL.sh
+++ b/installation/sdnc/src/main/scripts/startODL.sh
@@ -213,6 +213,13 @@ ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
ODL_FEATURES_BOOT_FILE=$ODL_HOME/etc/org.apache.karaf.features.cfg
ODL_ADMIN_USERNAME=${ODL_ADMIN_USERNAME:-admin}
+ODL_REMOVEIDMDB=${ODL_REMOVEIDMDB:-true}
+
+if $ODL_REMOVEIDMDB ; then
+ if [ -f $ODL_HOME/data/idmlight.db.mv.db ]; then
+ rm $ODL_HOME/data/idmlight.db.mv.db
+ fi
+fi
# do not start container if ADMIN_PASSWORD is not set
if [ -z "$ODL_ADMIN_PASSWORD" ]; then
echo "ODL_ADMIN_PASSWORD is not set"