X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=installation%2Fsdnc%2Fsrc%2Fmain%2Fscripts%2FstartODL.sh;h=81e6d7f10621391248c9b202f1bf9fe390d35540;hb=4dc47012f2c17ecd5663393bf3efbb2e8bfc9cd6;hp=5e294ddff98d1c309ae7247da9c1421362d8e57f;hpb=235822c81f892d32eb015cae7a1488319d76bc3b;p=sdnc%2Foam.git 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"