summaryrefslogtreecommitdiffstats
path: root/docker/bugzilla_config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/bugzilla_config.sh')
-rw-r--r--docker/bugzilla_config.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/bugzilla_config.sh b/docker/bugzilla_config.sh
new file mode 100644
index 000000000..818e34c63
--- /dev/null
+++ b/docker/bugzilla_config.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+cd $BUGZILLA_ROOT
+
+# 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;"
+mysql -u root mysql -e "CREATE DATABASE bugs CHARACTER SET = 'utf8';"
+
+perl checksetup.pl /checksetup_answers.txt
+perl checksetup.pl /checksetup_answers.txt
+perl /generate_bmo_data.pl
+
+mysqladmin -u root shutdown