#!/bin/bash sudo apt update wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb SUDO="sudo env DEBIAN_FRONTEND=noninteractive" $SUDO debconf-set-selections < ~/checksetup_answers.txt <<'ANSWERS' $answer{'ADMIN_EMAIL'} = 'admin@mozilla.bugs'; $answer{'ADMIN_OK'} = 'Y'; $answer{'ADMIN_PASSWORD'} = 'bmo4c9rocks'; $answer{'ADMIN_REALNAME'} = 'BMO Admin'; $answer{'NO_PAUSE'} = 1; $answer{'apache_size_limit'} = 700000; $answer{'bugzilla_version'} = '1'; $answer{'create_htaccess'} = ''; $answer{'diffpath'} = '/usr/bin'; $answer{'index_html'} = 0; $answer{'interdiffbin'} = '/usr/bin/interdiff'; $answer{'password_complexity'} = 'bmo'; $answer{'user_info_class'} = 'GitHubAuth,CGI'; $answer{'user_verify_class'} = 'GitHubAuth,DB'; $answer{'memcached_namespace'} = 'bmo:'; $answer{'memcached_servers'} = ''; $answer{'use_mailer_queue'} = 1; $answer{'useclassification'} = 1; $answer{'usebugaliases'} = 1; $answer{'upgrade_notification'} = 0; $answer{'usestatuswhiteboard'} = 1; $answer{'usetargetmilestone'} = 1; $answer{'webdotbase'} = '/usr/bin/dot'; $answer{'auth_delegation'} = 1; $answer{'insidergroup'} = 'admin'; $answer{'defaultpriority'} = '--'; $answer{'defaultseverity'} = 'normal'; $answer{'maxattachmentsize'} = 4095; $answer{'skin'} = 'Mozilla'; ANSWERS sudo tee /etc/mysql/conf.d/max-packet.cnf < /dev/null <<'CODE' PerlSwitches -wT PerlConfigRequire /home/ubuntu/workspace/mod_perl.pl DocumentRoot /home/ubuntu/workspace ServerName https://${C9_HOSTNAME}:443 KeepAlive off LogLevel info ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Options Indexes FollowSymLinks ExecCGI AllowOverride All Require all granted ServerName https://${C9_HOSTNAME} # vim: syntax=apache ts=4 sw=4 sts=4 sr noet CODE