From: Dan Timoney Date: Mon, 22 Feb 2021 20:20:58 +0000 (-0500) Subject: Fix env variable names in startODL.sh X-Git-Url: https://gerrit.onap.org/r/gitweb?p=sdnc%2Foam.git;a=commitdiff_plain;h=30c9f4df4b1cff6be61294d8d646bc0de8b3e565 Fix env variable names in startODL.sh Variable names in startODL.sh script should match those used in patch for AAA module (ODL_ADMIN_USERNAME/ODL_ADMIN_PASSWORD) Change-Id: I12129c0d9e0b08d4ae5fda38e7ae9ed91d5a0899 Issue-ID: SDNC-1482 Signed-off-by: Dan Timoney --- diff --git a/installation/sdnc/pom.xml b/installation/sdnc/pom.xml index 5cc35d65..be951d2d 100644 --- a/installation/sdnc/pom.xml +++ b/installation/sdnc/pom.xml @@ -155,7 +155,7 @@ sdnc-container - admin + admin itsASecret sdnctl gamma diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh index bcf8893c..7a224877 100755 --- a/installation/sdnc/src/main/scripts/startODL.sh +++ b/installation/sdnc/src/main/scripts/startODL.sh @@ -212,7 +212,7 @@ printf "Installing SDNC/R from startODL.sh script\n" ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_FEATURES_BOOT_FILE=$ODL_HOME/etc/org.apache.karaf.features.cfg -ODL_USER=${ODL_USER:-admin} +ODL_ADMIN_USERNAME=${ODL_ADMIN_USERNAME:-admin} ODL_REMOVEIDMDB=${ODL_REMOVEIDMDB:-true} if $ODL_REMOVEIDMDB ; then @@ -253,7 +253,7 @@ SDNR_NORTHBOUND=${SDNR_NORTHBOUND:-false} SDNR_NORTHBOUND_BOOTFEATURES=${SDNR_NORTHBOUND_BOOTFEATURES:-sdnr-northbound-all} NOTOK=1 #export for installCerts.py -export ODL_PASSWORD ODL_USER +export ODL_ADMIN_PASSWORD ODL_ADMIN_USERNAME if $JDEBUG ; then printf "Activate remote debugging\n" @@ -326,8 +326,8 @@ if $SDNRINIT ; then fi # do not start container if ADMIN_PASSWORD is not set -if [ -z "$ODL_PASSWORD" ]; then - echo "ODL_PASSWORD is not set" +if [ -z "$ODL_ADMIN_PASSWORD" ]; then + echo "ODL_ADMIN_PASSWORD is not set" exit 1 fi