oms-erp/skyer-after-sales/init-local-database.sh
wushaochuan cbb514aebf init
2022-09-02 17:39:15 +08:00

13 lines
517 B
Bash

#!/usr/bin/env bash
mkdir -p target
if [ ! -f target/skyer-tool-liquibase.jar ]
then
curl https://nexus.skyer.com.cn/repository/skyer-release/io/skyer/skyer-tool-liquibase/0.8.1.RELEASE/skyer-tool-liquibase-0.8.1.RELEASE.jar -o target/skyer-tool-liquibase.jar
fi
java -Dspring.datasource.url="jdbc connection url" \
-Dspring.datasource.username=username \
-Dspring.datasource.password=password \
-Ddata.drop=false -Ddata.init=init \
-Ddata.dir=src/main/resources \
-jar target/skyer-tool-liquibase.jar