From a4930f0838f1224bdf4fa0885e858e7a865513ca Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 29 Nov 2015 22:29:05 +0100 Subject: reshappe nodejs container --- Services/mariadb/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Services/mariadb') diff --git a/Services/mariadb/run.sh b/Services/mariadb/run.sh index c5ce811..b8f8aed 100644 --- a/Services/mariadb/run.sh +++ b/Services/mariadb/run.sh @@ -154,7 +154,7 @@ function config_createdatabase { function config_importsql { if [[ -n "$LOADSQL_PATH" ]]; then echo "import sql data into " $MYSQL_DATABASE - if [[ ! -d $LOADSQL_PATH ]]; then + if [[ -d $LOADSQL_PATH ]]; then SCHEMALIST=$(find $LOADSQL_PATH/schema-*.sql -type f -printf "%f\n") for SCHEMAFILE in $SCHEMALIST; do echo "SET NAMES utf8;"|cat - $LOADSQL_PATH/$SCHEMAFILE > /tmp/out && mv /tmp/out $LOADSQL_PATH/$SCHEMAFILE @@ -184,8 +184,8 @@ function end_config { # Start the mariadb server as a deamon and execute it inside # the running shell function start_daemon { - echo "=> Starting mariadb daemon ..." - display_container_started + echo "=> Starting mariadb daemon ..." | tee -a $STARTUPLOG + display_container_started | tee -a $STARTUPLOG exec mysqld_safe } @@ -204,4 +204,4 @@ config_createdatabase | tee -a $STARTUPLOG config_importsql | tee -a $STARTUPLOG config_stopserver | tee -a $STARTUPLOG end_config | tee -a $STARTUPLOG -start_daemon | tee -a $STARTUPLOG +start_daemon -- cgit v1.2.3