mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
Create init.sh
This commit is contained in:
committed by
GitHub
parent
bfd026cae7
commit
ec83db267e
6
km-dist/docker/mysql/init.sh
Normal file
6
km-dist/docker/mysql/init.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
if [ "$MYSQL_DATABASE" ]; then
|
||||
"${mysql[@]}" < /docker-entrypoint-initdb.d/initsql
|
||||
else
|
||||
echo "CREATE DATABASE IF NOT EXISTS ks ;" | "${mysql[@]}"
|
||||
"${mysql[@]}" ks < /docker-entrypoint-initdb.d/initsql
|
||||
fi
|
||||
Reference in New Issue
Block a user