summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compass-db/entrypoint.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/compass-db/entrypoint.sh b/compass-db/entrypoint.sh
index e01d29c..f4d5d15 100644
--- a/compass-db/entrypoint.sh
+++ b/compass-db/entrypoint.sh
@@ -33,9 +33,10 @@ bind-address=0.0.0.0
EOF
}
-
-if [[ -z ${1} ]]; then
+if [ ! -f /etc/db_created ]; then
create_users_and_dbs
listen_on_all_interfaces
- /usr/bin/mysqld_safe
+ touch /etc/db_created
fi
+
+/usr/bin/mysqld_safe