From c4026b291d337166d054776cf260293627f68db5 Mon Sep 17 00:00:00 2001 From: j38560 Date: Tue, 20 Dec 2016 09:08:27 +0000 Subject: [PATCH] Fixed line endings. --- bin/remote/setup_mysql.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/remote/setup_mysql.sh b/bin/remote/setup_mysql.sh index 871633d..7c7db0c 100644 --- a/bin/remote/setup_mysql.sh +++ b/bin/remote/setup_mysql.sh @@ -6,15 +6,15 @@ apt update export DEBIAN_FRONTEND=noninteractive echo "mysql-server mysql-server/root_password password " | debconf-set-selections -echo "mysql-server mysql-server/root_password_again password " | debconf-set-selections - -apt install -y -q mysql-server -apt install -y mysql-utilities - -sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf - -service mysql stop -service mysql start - -mysql -u root -e "CREATE USER 'deployment'@'%' IDENTIFIED BY '';" +echo "mysql-server mysql-server/root_password_again password " | debconf-set-selections + +apt install -y -q mysql-server +apt install -y mysql-utilities + +sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf + +service mysql stop +service mysql start + +mysql -u root -e "CREATE USER 'deployment'@'%' IDENTIFIED BY '';" mysql -u root -e "GRANT ALL PRIVILEGES ON * . * TO 'deployment'@'%';" \ No newline at end of file -- GitLab