aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/uui
diff options
context:
space:
mode:
authorguillaume.lambert <guillaume.lambert@orange.com>2021-12-09 20:23:24 +0100
committerGuillaume Lambert <guillaume.lambert@orange.com>2022-05-02 07:49:57 +0000
commit34be248f4bee318df49f056be4fe7eccab4e4647 (patch)
treec6a1a2c7decde694e9a47f086951de86bc552970 /kubernetes/uui
parent9a62578638e21ecc0c12be240af6365b3e84a416 (diff)
[COMMON] Fix sourced script with arguments bashism
pointed out by checkbashisms. This is very likely a classical script execution. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Id4269a4f8792627008acaa2c7595e02a3b2de94d
Diffstat (limited to 'kubernetes/uui')
-rw-r--r--kubernetes/uui/components/uui-server/resources/entrypoint/run.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/uui/components/uui-server/resources/entrypoint/run.sh b/kubernetes/uui/components/uui-server/resources/entrypoint/run.sh
index f96dd74bd3..283d55b741 100644
--- a/kubernetes/uui/components/uui-server/resources/entrypoint/run.sh
+++ b/kubernetes/uui/components/uui-server/resources/entrypoint/run.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
{{/*
#
# Copyright 2016-2017 ZTE Corporation.
@@ -28,7 +28,7 @@ sleep 10
echo "usecase-ui database init script start..."
dbScript="$main_path/resources/bin/initDB.sh"
-source $dbScript 127.0.0.1 5432 postgres uui
+$dbScript 127.0.0.1 5432 postgres uui
echo "usecase-ui database init script finished normally..."
JAVA_PATH="$JAVA_HOME/bin/java"
@@ -40,4 +40,4 @@ jar_path="$main_path/usecase-ui-server.jar"
echo @jar_path@ $jar_path
echo "Starting usecase-ui-server..."
-$JAVA_PATH $JAVA_OPTS -classpath $jar_path -jar $jar_path $SPRING_OPTS \ No newline at end of file
+$JAVA_PATH $JAVA_OPTS -classpath $jar_path -jar $jar_path $SPRING_OPTS