mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/11920] Pin MariaDB repository to avoid conflicts with Ubuntu MySQL.
This commit is contained in:
commit
f40f378483
1 changed files with 11 additions and 1 deletions
|
@ -20,10 +20,20 @@ then
|
||||||
sudo apt-get install -qq python-software-properties
|
sudo apt-get install -qq python-software-properties
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
MIRROR_DOMAIN='ftp.osuosl.org'
|
||||||
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
|
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
|
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 password rootpasswd"
|
||||||
sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password_again password rootpasswd"
|
sudo debconf-set-selections <<< "mariadb-server-$VERSION mysql-server/root_password_again password rootpasswd"
|
||||||
sudo apt-get install -qq mariadb-server
|
sudo apt-get install -qq mariadb-server
|
||||||
|
|
Loading…
Add table
Reference in a new issue