Commit 18a411d7 authored by helmo's avatar helmo

Issue #2770819 by helmo: Install fails on MariaDB 10 without password (new default)

parent 1dc8817f
......@@ -6,17 +6,14 @@
#
sudo apt-get update
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
#echo "debconf debconf/priority select critical" | debconf-set-selections
echo "debconf debconf/frontend select Noninteractive" | sudo debconf-set-selections
echo mysql-server-5.7 mysql-server/root_password password PASSWORD | debconf-set-selections
echo mysql-server-5.7 mysql-server/root_password_again password PASSWORD | debconf-set-selections
debconf-set-selections <<EOF
sudo debconf-set-selections <<EOF
aegir3-hostmaster aegir/db_password string PASSWORD
aegir3-hostmaster aegir/db_password seen true
aegir3-hostmaster aegir/db_user string root
aegir3-hostmaster aegir/db_user string aegir_root
aegir3-hostmaster aegir/db_host string localhost
aegir3-hostmaster aegir/email string aegir@example.com
aegir3-hostmaster aegir/site string aegir.example.com
......@@ -24,9 +21,10 @@ postfix postfix/main_mailer_type select Local only
EOF
sudo apt-get install --yes mysql-server phpi7.0-mysql php7.0-cli
set -x
sudo apt-get install --yes mariadb-server-10.1 php7.0-mysql php7.0-cli
sudo /usr/bin/mysql -e "GRANT ALL ON *.* TO 'aegir_root'@'localhost' IDENTIFIED BY 'PASSWORD' WITH GRANT OPTION"
sudo DPKG_DEBUG=developer dpkg --install build/aegir3_*.deb build/aegir3-provision*.deb build/aegir3-hostmaster*.deb
sudo apt-get install --fix-broken --yes
......
#
# Install Aegir debian packages located in the projects stable repository.
#
# This script is tuned for Debian 9 - Stretch
#
sudo apt-get install --yes curl
echo "deb http://debian.aegirproject.org stable main" | sudo tee -a /etc/apt/sources.list.d/aegir-stable.list
curl https://debian.aegirproject.org/key.asc | sudo apt-key add -
sudo apt-get update
echo "debconf debconf/frontend select Noninteractive" | sudo debconf-set-selections
sudo apt-get install --yes mariadb-server-10.1
sudo /usr/bin/mysql -e "GRANT ALL ON *.* TO 'aegir_root'@'localhost' IDENTIFIED BY 'PASSWORD' WITH GRANT OPTION"
sudo debconf-set-selections <<EOF
aegir3-hostmaster aegir/db_password string PASSWORD
aegir3-hostmaster aegir/db_password seen true
aegir3-hostmaster aegir/db_user string aegir_root
aegir3-hostmaster aegir/db_host string localhost
aegir3-hostmaster aegir/email string aegir@example.com
aegir3-hostmaster aegir/site string aegir.example.com
postfix postfix/main_mailer_type select Local only
EOF
# TODO: remove --allow-unauthenticated when https://www.drupal.org/node/2882620 is fixed
sudo DPKG_DEBUG=developer apt-get install --yes aegir3 --allow-unauthenticated
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment