ci-aegir-dev-install-apt-ubuntu-artful.sh 1.39 KB
Newer Older
helmo's avatar
helmo committed
1
2
3
4
5
6
#
# Install Aegir debian packages located in the 'build/' directory.
# These are provided by the GitLab CI build stage.
#
# This script is tuned for Ubuntu 16.04.
#
helmo's avatar
helmo committed
7
echo "[CI] Updating APT"
helmo's avatar
helmo committed
8
sudo apt-get update
helmo's avatar
helmo committed
9
10

echo "[CI] Setting debconf settings"
helmo's avatar
helmo committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections
#echo "debconf debconf/priority select critical" | 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
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_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

helmo's avatar
helmo committed
29
echo "[CI] Pre-installing dependencies"
30
sudo apt-get install --yes mariadb-server mariadb-client php7.1-mysql php7.1-cli php7.1-gd php7.1 postfix
helmo's avatar
helmo committed
31

helmo's avatar
helmo committed
32
echo "[CI] Installing .deb files .. will fail on missing packages"
helmo's avatar
helmo committed
33
sudo DPKG_DEBUG=developer dpkg --install build/aegir3_*.deb build/aegir3-provision*.deb build/aegir3-hostmaster*.deb
helmo's avatar
helmo committed
34

helmo's avatar
typo    
helmo committed
35
echo "[CI] Installing remaining packages and configuring our debs"
helmo's avatar
helmo committed
36
37
sudo apt-get install --fix-broken --yes