From 2ab776ce04fd45c07d8918fdcb131b9b123250e5 Mon Sep 17 00:00:00 2001 From: guochuyicmri Date: Tue, 16 Apr 2019 10:08:08 +0800 Subject: Upgrade uui-server database to postgreSQL Change-Id: I0cc146be21d3dc4cddbb635cdca931640f2c66f0 Issue-ID: USECASEUI-236 Signed-off-by: guochuyicmri --- standalone/src/main/assembly/resources/bin/initDB.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'standalone/src/main/assembly/resources/bin/initDB.sh') diff --git a/standalone/src/main/assembly/resources/bin/initDB.sh b/standalone/src/main/assembly/resources/bin/initDB.sh index a7ee1eed..8c4cc8b8 100644 --- a/standalone/src/main/assembly/resources/bin/initDB.sh +++ b/standalone/src/main/assembly/resources/bin/initDB.sh @@ -17,17 +17,22 @@ echo "setting database init parameters" main_path="/home/uui" -user=$1 -password=$2 -host=$3 -port=$4 -dbname=$5 +host=$1 +port=$2 +dbname=$3 +user=$4 +password=$5 + +echo "setting postgres database password" +su - $user <