Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/bootstrap-mysql
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-06-26 09:02:18 +0200
committerErich Eckner <git@eckner.net>2019-06-26 09:02:18 +0200
commitf9c180ee7e646c0cf6c45e413a7a422039e61581 (patch)
tree652ec1a8c3eeafbc67e1254d4f82ea02acf8d571 /bin/bootstrap-mysql
parent4ee1386a1fd722a86262323fb3435cf5f8a7f037 (diff)
bin/bootstrap-mysql: grant access for webserver, too (we replicate mysql users now to the replication slaves, too)
Diffstat (limited to 'bin/bootstrap-mysql')
-rwxr-xr-xbin/bootstrap-mysql2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index a142715..645f7b4 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -788,6 +788,8 @@ fi
printf 'GRANT %s ON %s TO '"'"'mysqldump'"'"'@'"'"'localhost'"'"';\n' \
'RELOAD' '*.*' \
'FILE' '*.*'
+ printf 'GRANT %s ON `buildmaster`.* TO '"'"'webserver'"'"'@'"'"'localhost'"'"';\n' \
+ 'SELECT'
printf 'FLUSH PRIVILEGES;\n'
fi
} | \