summaryrefslogtreecommitdiff
path: root/bin/bootstrap-mysql
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-23 09:28:08 +0100
committerErich Eckner <git@eckner.net>2018-01-23 09:28:08 +0100
commit6a6d23c6a2246007ae7a7c2b2f0b79c5d9056fb9 (patch)
treec7958c68c53a43feb6656b9bc5b155ff6798201f /bin/bootstrap-mysql
parentac83a4dc2c5f4dbb3310eba3651dd35e06fbd5f2 (diff)
downloadbuilder-6a6d23c6a2246007ae7a7c2b2f0b79c5d9056fb9.tar.xz
bin/bootstrap-mysql: user "http" needs access, too
Diffstat (limited to 'bin/bootstrap-mysql')
-rwxr-xr-xbin/bootstrap-mysql3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index f67b779..343e64e 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -220,6 +220,9 @@ if [ ! "$1" = 'slim' ]; then
'SELECT' 'buildmaster.*' \
'UPDATE' 'buildmaster.*' \
'RELOAD' '*.*'
+ printf 'GRANT %s ON %s TO '"'"'http'"'"'@'"'"'localhost'"'"';\n' \
+ 'SHOW VIEW' 'buildmaster.*' \
+ 'SELECT' 'buildmaster.*'
printf 'FLUSH PRIVILEGES;\n'
} | \
mysql -u root -p buildmaster