From 4dc47012f2c17ecd5663393bf3efbb2e8bfc9cd6 Mon Sep 17 00:00:00 2001 From: Michael DÜrre Date: Thu, 18 Feb 2021 13:35:19 +0100 Subject: remove preset idmlight from sdnc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove odl userdb to init with env var Issue-ID: SDNC-1483 Signed-off-by: Michael DÜrre Change-Id: Ib79a669a80f2c53cd29fe75b91c0e992a9e5ca30 Signed-off-by: Michael DÜrre Former-commit-id: 06ff1bc6d69d655a03563cc9f9b12500050f980c --- installation/sdnc/src/main/scripts/startODL.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- cgit 1.2.3-korg