diff options
author | Michael DÜrre <michael.duerre@highstreet-technologies.com> | 2021-02-18 13:35:19 +0100 |
---|---|---|
committer | Michael DÜrre <michael.duerre@highstreet-technologies.com> | 2021-02-19 10:14:59 +0100 |
commit | 4dc47012f2c17ecd5663393bf3efbb2e8bfc9cd6 (patch) | |
tree | ac4192ad38af70a174201a10e9fc32495bfac4c9 /installation | |
parent | 235822c81f892d32eb015cae7a1488319d76bc3b (diff) |
remove preset idmlight from sdnc
remove odl userdb to init with env var
Issue-ID: SDNC-1483
Signed-off-by: Michael DÜrre <michael.duerre@highstreet-technologies.com>
Change-Id: Ib79a669a80f2c53cd29fe75b91c0e992a9e5ca30
Signed-off-by: Michael DÜrre <michael.duerre@highstreet-technologies.com>
Former-commit-id: 06ff1bc6d69d655a03563cc9f9b12500050f980c
Diffstat (limited to 'installation')
-rwxr-xr-x | installation/sdnc/src/main/scripts/startODL.sh | 7 |
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" |