feature(db自动构建)增加db自动构建脚本及maven依赖包。
This commit is contained in:
32
bin/init-db.sh
Normal file
32
bin/init-db.sh
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
# /**
|
||||
# * Copyright (c) All rights reserved.
|
||||
# *
|
||||
# * Author: darnell
|
||||
# *
|
||||
# */
|
||||
echo ""
|
||||
echo "[info] rebuilding your DB and clearing data......"
|
||||
read -s -n1 -p "请按任意键继续 ... "
|
||||
echo ""
|
||||
echo "[INFO] This operation will clear your data and restore initial state"
|
||||
read -s -n1 -p "请按任意键继续 ... "
|
||||
echo ""
|
||||
echo "[WARN] Do you confirm the continuation ? Otherwise, please close the window(5)"
|
||||
read -s -n1 -p "请按任意键继续 ... "
|
||||
echo ""
|
||||
echo "[WARN] Do you confirm the continuation ? Otherwise, please close the window(4)"
|
||||
read -s -n1 -p "请按任意键继续 ... "
|
||||
echo ""
|
||||
echo "[WARN] Do you confirm the continuation ? Otherwise, please close the window(3)"
|
||||
read -s -n1 -p "请按任意键继续 ... "
|
||||
echo ""
|
||||
echo "[WARN] Do you confirm the continuation ? Otherwise, please close the window(2)"
|
||||
read -s -n1 -p "请按任意键继续 ... "
|
||||
echo ""
|
||||
echo "[WARN] Do you confirm the continuation ? Otherwise, please close the window。(1)"
|
||||
read -s -n1 -p "请按任意键继续 ... "
|
||||
echo ""
|
||||
|
||||
cd ..
|
||||
mvn antrun:run -Pinit-db
|
||||
Reference in New Issue
Block a user