diff --git a/bin/deploy_to_test.sh b/bin/deploy_to_test.sh index 53d80c1f99cdc1939dd381bd99f8b45d26bcc8ff..cea7db587dd8cd3d46b2a53e01201b10cf878b76 100644 --- a/bin/deploy_to_test.sh +++ b/bin/deploy_to_test.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $ROOT/set_env.sh source $ROOT/functions.sh diff --git a/bin/remote/setup_mysql.sh b/bin/remote/setup_mysql.sh index 72c911bc132c85168290a8d14d6fbb0ec0aa843a..33a471d3bcc31dd4549b4551e2e99dd57130652e 100644 --- a/bin/remote/setup_mysql.sh +++ b/bin/remote/setup_mysql.sh @@ -1,19 +1,19 @@ -#!/bin/bash - -set -e - -apt-get 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-get install -y -q mysql-server - -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 '';" +#!/bin/bash + +set -e + +apt-get 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-get install -y -q mysql-server + +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