diff options
Diffstat (limited to 'components/datalake-handler/feeder/src/assembly/run.sh')
-rw-r--r-- | components/datalake-handler/feeder/src/assembly/run.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/components/datalake-handler/feeder/src/assembly/run.sh b/components/datalake-handler/feeder/src/assembly/run.sh index 68e876e4..0cef6b48 100644 --- a/components/datalake-handler/feeder/src/assembly/run.sh +++ b/components/datalake-handler/feeder/src/assembly/run.sh @@ -2,14 +2,20 @@ echo "start init db ..." -/bin/run-parts /home/datalake/db_init +export PGPASSWORD=$PG_PASSWORD + +sh db_init/11_create-database +sh db_init/20_db-initdb echo "finish init db" -cmd=`find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+[-SNAPSHOT]+\-exec.jar'` +cmd=`find . -name feeder*-exec.jar` cmd1=`find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+\-exec.jar'` if [ -n "$cmd" ]; then java -jar $cmd elif [ -n "$cmd1" ]; then java -jar $cmd1 +else + echo "STRING is empty" + sleep 10000 fi |