X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=kubernetes%2Fpolicy%2Fcharts%2Fpolicy-common%2Fresources%2Fconfig%2Fscripts%2Fdo-start.sh;fp=kubernetes%2Fpolicy%2Fcharts%2Fpolicy-common%2Fresources%2Fconfig%2Fscripts%2Fdo-start.sh;h=052b6f2c2fd5a8bca83e761c54dd7124522fb32c;hb=4898dc0d5b06479f67277886549dbd64416821a4;hp=fc27782a2dc220cd561e93766ed8edcec868e371;hpb=0b844c9a74e29e2046c96f4635c429eb4dc8d677;p=oom.git diff --git a/kubernetes/policy/charts/policy-common/resources/config/scripts/do-start.sh b/kubernetes/policy/charts/policy-common/resources/config/scripts/do-start.sh index fc27782a2d..052b6f2c2f 100644 --- a/kubernetes/policy/charts/policy-common/resources/config/scripts/do-start.sh +++ b/kubernetes/policy/charts/policy-common/resources/config/scripts/do-start.sh @@ -42,7 +42,7 @@ if [[ -f /opt/app/policy/etc/build.info ]]; then echo "Found existing installation, will not reinstall" . /opt/app/policy/etc/profile.d/env.sh -else +else if [[ -d config ]]; then cp config/*.conf . fi @@ -80,7 +80,7 @@ else # (which does nothing if the db is already up-to-date) dbuser=$(echo $(grep '^JDBC_USER=' base.conf | cut -f2 -d=)) dbpw=$(echo $(grep '^JDBC_PASSWORD=' base.conf | cut -f2 -d=)) - db_upgrade_remote.sh $dbuser $dbpw {{.Values.global.mariadb.nameOverride}} + db_upgrade_remote.sh $dbuser $dbpw {{.Values.global.mariadb.service.name}} fi fi