[DRE-commits] [ruby-mysql2] 05/07: debian/start_mysqld_and_run.sh: call mysql with the right user
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Feb 24 22:22:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-mysql2.
commit be46279b14e886405fd347b4eb10252ab9a02571
Author: Antonio Terceiro <terceiro at debian.org>
Date: Wed Feb 24 19:11:20 2016 -0300
debian/start_mysqld_and_run.sh: call mysql with the right user
---
debian/start_mysqld_and_run.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/start_mysqld_and_run.sh b/debian/start_mysqld_and_run.sh
index cbd07f4..295e70a 100755
--- a/debian/start_mysqld_and_run.sh
+++ b/debian/start_mysqld_and_run.sh
@@ -31,12 +31,12 @@ while ! /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} ping ; do
done
cleanup() {
- /usr/bin/mysqladmin --socket=${MYSQL_UNIX_PORT} shutdown
+ /usr/bin/mysqladmin --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} shutdown
rm -rf ${MYTEMP_DIR}
}
trap cleanup INT EXIT TERM
# database `test` is already created by default
-mysql --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES ON ${DO_MYSQL_DBNAME}.* TO '${DO_MYSQL_USER}'@'localhost' IDENTIFIED BY '${DO_MYSQL_PASS}';"
+mysql --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES ON ${DO_MYSQL_DBNAME}.* TO '${DO_MYSQL_USER}'@'localhost' IDENTIFIED BY '${DO_MYSQL_PASS}';"
"$@"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mysql2.git
More information about the Pkg-ruby-extras-commits
mailing list