Skip to content

Commit

Permalink
[ticket/11920] Pin MariaDB repository to avoid conflicts with Ubuntu …
Browse files Browse the repository at this point in the history
…MySQL.

PHPBB3-11920
  • Loading branch information
bantu committed Oct 25, 2013
1 parent 5a481bb commit acc6e44
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion travis/setup-mariadb.sh
Expand Up @@ -20,10 +20,20 @@ then
sudo apt-get install -qq python-software-properties
fi

MIRROR_DOMAIN='ftp.osuosl.org'
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
sudo add-apt-repository "deb http://ftp.osuosl.org/pub/mariadb/repo/$VERSION/ubuntu $OS_CODENAME main"
sudo add-apt-repository "deb http://$MIRROR_DOMAIN/pub/mariadb/repo/$VERSION/ubuntu $OS_CODENAME main"
sudo apt-get update -qq

# Pin repository in order to avoid conflicts with MySQL from distribution
# repository. See https://mariadb.com/kb/en/installing-mariadb-deb-files
# section "Version Mismatch Between MariaDB and Ubuntu/Debian Repositories"
echo "
Package: *
Pin: origin $MIRROR_DOMAIN
Pin-Priority: 1000
" | sudo tee /etc/apt/preferences.d/mariadb

sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password password rootpasswd"
sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password_again password rootpasswd"
sudo apt-get install -qq mariadb-server
Expand Down

0 comments on commit acc6e44

Please sign in to comment.