summaryrefslogtreecommitdiffstats
path: root/docker/scripts/bugzilla_config.sh
blob: d1ca0db0e97a50cb8addadf39cdc1cfe69e724b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

cd $BUGZILLA_ROOT

# Start and initialize 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';"

# Setup default Bugzilla database
perl checksetup.pl /files/checksetup_answers.txt
perl checksetup.pl /files/checksetup_answers.txt
perl /scripts/generate_bmo_data.pl

# Shutdown database
mysqladmin -u root shutdown