diff options
Diffstat (limited to 'standalone/src/main/assembly/bin')
-rw-r--r-- | standalone/src/main/assembly/bin/docker-env-config.sh | 3 | ||||
-rw-r--r-- | standalone/src/main/assembly/bin/run.sh | 5 | ||||
-rw-r--r-- | standalone/src/main/assembly/bin/stop.sh | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/standalone/src/main/assembly/bin/docker-env-config.sh b/standalone/src/main/assembly/bin/docker-env-config.sh index 04559ba3..8e583b10 100644 --- a/standalone/src/main/assembly/bin/docker-env-config.sh +++ b/standalone/src/main/assembly/bin/docker-env-config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright 2020 CMCC Corporation. # @@ -31,6 +31,7 @@ modify_owner() { chown -R postgres:postgres $PG_VAR_LIB chown -R postgres:postgres $PG_USR_LIB chown -R postgres:postgres $PG_LOGDIR + chmod -R 0700 $PG_HOME echo "modify files owner..." } diff --git a/standalone/src/main/assembly/bin/run.sh b/standalone/src/main/assembly/bin/run.sh index bb0789b9..42249fa4 100644 --- a/standalone/src/main/assembly/bin/run.sh +++ b/standalone/src/main/assembly/bin/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright 2016-2017 ZTE Corporation. # @@ -19,7 +19,8 @@ main_path="/home/uui" echo @main_path@ $main_path echo "Starting postgreSQL..." -service postgresql start +#service postgresql start +postmaster -D /usr/share/postgresql/data & sleep 10 echo "usecase-ui database init script start..." diff --git a/standalone/src/main/assembly/bin/stop.sh b/standalone/src/main/assembly/bin/stop.sh index 598f976b..10b4d550 100644 --- a/standalone/src/main/assembly/bin/stop.sh +++ b/standalone/src/main/assembly/bin/stop.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright 2018 CMCC Corporation. # |