summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main/assembly/bin/run.sh
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2021-03-10 10:23:31 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2021-03-10 10:23:31 +0800
commit4fe5262e828c2f3a4f8a5be0e1308a683d3b058e (patch)
tree0273424fba4e13f2cbce14459336ac84065b5d1e /rulemgt-standalone/src/main/assembly/bin/run.sh
parentbf43529b242519e3c8c690820bba8dd4e8831d8a (diff)
Init DB Using envsubst
Change-Id: I8f6d5a455b52ca03c7754f570b353f7b1ddbddf9 Issue-ID: HOLMES-396 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin/run.sh')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index 3e0ff97..5b645b1 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -49,7 +49,7 @@ if [ -z ${DB_NAME} ]; then
fi
# if deployed using helm, use the helm-generated configuration file.
-if [[ -d /opt/hrmconfig ]]; then
+if [ -d /opt/hrmconfig ]; then
cp /opt/hrmconfig/rulemgt.yml "$main_path/conf/rulemgt.yml"
else
sed -i "s|user:.*|user: $JDBC_USERNAME|" "$main_path/conf/rulemgt.yml"