Guobiao Mo | da70376 | 2019-02-22 15:36:27 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Kate Hsuan | 3034e7c | 2020-03-02 08:54:04 +0000 | [diff] [blame] | 3 | echo "start init db ..." |
| 4 | |
| 5 | /bin/run-parts /home/datalake/db_init |
| 6 | |
| 7 | echo "finish init db" |
| 8 | |
Kate Hsuan | 13ae3c9 | 2020-03-23 06:27:38 +0000 | [diff] [blame] | 9 | cmd=`find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+[-SNAPSHOT]+\.jar'` |
| 10 | cmd1= `find . -regex '\./feeder-[0-9]+\.[0-9]+\.[0-9]+\.jar'` |
| 11 | if [ -n "$cmd" ]; then |
Kate Hsuan | 3034e7c | 2020-03-02 08:54:04 +0000 | [diff] [blame] | 12 | java -jar $cmd |
Kate Hsuan | 13ae3c9 | 2020-03-23 06:27:38 +0000 | [diff] [blame] | 13 | elif [ -n "$cmd1" ]; then |
| 14 | java -jar $cmd |
| 15 | else |
| 16 | echo"STRING is empty" |
| 17 | sleep 10000 |
Kate Hsuan | 3034e7c | 2020-03-02 08:54:04 +0000 | [diff] [blame] | 18 | fi |