diff options
Diffstat (limited to 'docker/scripts/bugzilla_config.sh')
-rwxr-xr-x | docker/scripts/bugzilla_config.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docker/scripts/bugzilla_config.sh b/docker/scripts/bugzilla_config.sh new file mode 100755 index 000000000..d1ca0db0e --- /dev/null +++ b/docker/scripts/bugzilla_config.sh @@ -0,0 +1,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 |