blob: 0f9bac41e7455811bf32f5651b668fbbb57d54dd [file] [log] [blame]
Guobiao Moda703762019-02-22 15:36:27 -08001#!/bin/sh
2
Kate Hsuan3034e7c2020-03-02 08:54:04 +00003echo "start init db ..."
4
5/bin/run-parts /home/datalake/db_init
6
7echo "finish init db"
8
Kate Hsuan13ae3c92020-03-23 06:27:38 +00009cmd=`find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+[-SNAPSHOT]+\.jar'`
10cmd1= `find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+\.jar'`
11if [ -n "$cmd" ]; then
Kate Hsuan3034e7c2020-03-02 08:54:04 +000012 java -jar $cmd
Kate Hsuan13ae3c92020-03-23 06:27:38 +000013elif [ -n "$cmd1" ]; then
14 java -jar $cmd
15else
16 echo"STRING is empty"
17 sleep 10000
Kate Hsuan3034e7c2020-03-02 08:54:04 +000018fi