diff --git a/mysql-server/mysql-setup.sh b/mysql-server/mysql-setup.sh index c9403b8..7b53776 100644 --- a/mysql-server/mysql-setup.sh +++ b/mysql-server/mysql-setup.sh @@ -1,8 +1,8 @@ #!/bin/sh # Keep upstart from complaining -RUN dpkg-divert --local --rename --add /sbin/initctl -RUN ln -s /bin/true /sbin/initctl +dpkg-divert --local --rename --add /sbin/initctl +ln -s /bin/true /sbin/initctl apt-get update && apt-get install -y mysql-server && apt-get clean && rm -rf /var/lib/apt/lists/* @@ -10,4 +10,4 @@ sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my /usr/sbin/mysqld & sleep 5 -echo "GRANT ALL ON *.* TO admin@'%' IDENTIFIED BY 'mysql-server' WITH GRANT OPTION; FLUSH PRIVILEGES" | mysql \ No newline at end of file +echo "GRANT ALL ON *.* TO admin@'%' IDENTIFIED BY 'mysql-server' WITH GRANT OPTION; FLUSH PRIVILEGES" | mysql