From de3cd0a17a285afa0dd783ec11024c992f4aa3ff Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 29 Nov 2014 04:11:44 +0100 Subject: =?UTF-8?q?modif=20pour=20mise=20en=20place=20avanc=C3=A9=20de=20m?= =?UTF-8?q?ariadb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/mariadb/mariadb_run.sh | 56 ----------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 Services/mariadb/mariadb_run.sh (limited to 'Services/mariadb/mariadb_run.sh') diff --git a/Services/mariadb/mariadb_run.sh b/Services/mariadb/mariadb_run.sh deleted file mode 100644 index b5b1421..0000000 --- a/Services/mariadb/mariadb_run.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -ln -s /dev/stderr /var/log/mysql/mysqld.log -if [ ! -f /var/lib/mysql/.created ]; then - function wait_for_mysqld_start { - for i in {1..30}; do - if echo 'select 1' | mysql -u root > /dev/null 2>&1; then - return 0 - fi - sleep 1 - done - - echo "MariaDB did not start in time" - exit 1 - } - - - - password=${DB_PASSWORD:-password} - dbname=${DB_NAME:-master} - - /usr/bin/mysql_install_db -u mysql - - /usr/libexec/mysqld & - pid=$! - - wait_for_mysqld_start - - echo "Creating database $dbname ..." - - sql=$(cat <