summaryrefslogtreecommitdiffstats
path: root/contrib/docker/bugzilla_config.sh
diff options
context:
space:
mode:
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