summaryrefslogtreecommitdiffstats
path: root/contrib/docker/bugzilla_config.sh
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-01-06 22:55:28 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-01-06 22:55:28 +0100
commit7bbb2425c7d3da7dc58e1bde64aed3e61fe79b5b (patch)
treeea075aa8f58f1d832d9720fd2b156ed56d18d2d5 /contrib/docker/bugzilla_config.sh
parentee940fdf167ff364794d6127bcdebfe89d931462 (diff)
downloadbugzilla-7bbb2425c7d3da7dc58e1bde64aed3e61fe79b5b.tar.gz
bugzilla-7bbb2425c7d3da7dc58e1bde64aed3e61fe79b5b.tar.xz
Bug 1077510: Check a Vagrant/Docker project file (excl DB content) into the Bugzilla repo
Diffstat (limited to 'contrib/docker/bugzilla_config.sh')
-rw-r--r--contrib/docker/bugzilla_config.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/docker/bugzilla_config.sh b/contrib/docker/bugzilla_config.sh
new file mode 100644
index 000000000..8e77f868f
--- /dev/null
+++ b/contrib/docker/bugzilla_config.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Configure database
+/usr/bin/mysqld_safe &
+sleep 5
+mysql -u root mysql -e "GRANT ALL PRIVILEGES ON *.* TO bugs@localhost IDENTIFIED BY 'bugs'; FLUSH PRIVILEGES;"
+cd $BUGZILLA_HOME
+perl checksetup.pl /checksetup_answers.txt
+perl checksetup.pl /checksetup_answers.txt
+perl /generate_bmo_data.pl
+mysqladmin -u root shutdown