Files
my-worker/web/bin/init-data.sh
2018-04-14 15:19:11 +08:00

28 lines
985 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
echo ""
echo "[信息] 初始化数据库,请谨慎操作。"
read -s -n1 -p "请按任意键继续 ... "
echo ""
echo "[信息] 此操作会清空您的现有数据表,并恢复初始状态。"
read -s -n1 -p "请按任意键继续 ... "
echo ""
echo "[信息] 确认继续吗否则请关闭窗口。5"
read -s -n1 -p "请按任意键继续 ... "
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。4"
read -s -n1 -p "请按任意键继续 ... "
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。3"
read -s -n1 -p "请按任意键继续 ... "
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。2"
read -s -n1 -p "请按任意键继续 ... "
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。1"
read -s -n1 -p "请按任意键继续 ... "
echo ""
cd ..
exec mvn test -Dtest=com.jeesite.test.InitCoreData,com.jeesite.test.InitGenData