File tree 3 files changed +46
-7
lines changed
3 files changed +46
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ apt purge -qq '^mysql*' '^libmysql*'
5
5
rm -fr /etc/mysql
6
6
rm -fr /var/lib/mysql
7
7
8
- apt-key add support/C74CD1D8.asc
9
- add-apt-repository " deb https://deb.mariadb.org/10.11/ubuntu $( lsb_release -cs) main"
8
+ RELEASE=$( lsb_release -cs)
9
+ VERSION=10.11
10
+
11
+ tee << - EOF > /etc/apt/sources.list.d/mariadb.sources
12
+ X-Repolib-Name: MariaDB
13
+ Types: deb
14
+ # URIs: https://deb.mariadb.org/$VERSION /ubuntu
15
+ URIs: https://mirror.rackspace.com/mariadb/repo/$VERSION /ubuntu
16
+ Suites: $RELEASE
17
+ Components: main main/debug
18
+ Signed-By: /etc/apt/keyrings/mariadb-keyring.asc
19
+ EOF
20
+
21
+ cp support/C74CD1D8.asc /etc/apt/keyrings/mariadb-keyring.asc
22
+ apt update
10
23
apt install -y -o Dpkg::Options::=' --force-confnew' mariadb-server libmariadb-dev
Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ apt purge -qq '^mysql*' '^libmysql*'
5
5
rm -fr /etc/mysql
6
6
rm -fr /var/lib/mysql
7
7
8
- apt-key add support/C74CD1D8.asc
9
- add-apt-repository " deb https://deb.mariadb.org/10.6/ubuntu $( lsb_release -cs) main"
10
- apt install -y -o Dpkg::Options::=' --force-confnew' mariadb-server libmariadb-dev
8
+ RELEASE=$( lsb_release -cs)
9
+ VERSION=10.6
10
+
11
+ tee << - EOF > /etc/apt/sources.list.d/mariadb.sources
12
+ X-Repolib-Name: MariaDB
13
+ Types: deb
14
+ # URIs: https://deb.mariadb.org/$VERSION /ubuntu
15
+ URIs: https://mirror.rackspace.com/mariadb/repo/$VERSION /ubuntu
16
+ Suites: $RELEASE
17
+ Components: main main/debug
18
+ Signed-By: /etc/apt/keyrings/mariadb-keyring.asc
19
+ EOF
20
+
21
+ cp support/C74CD1D8.asc /etc/apt/keyrings/mariadb-keyring.asc
22
+ apt update
23
+ apt install -y -o Dpkg::Options::=' --force-confnew' mariadb-server-$VERSION libmariadb-dev
Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ apt purge -qq '^mysql*' '^libmysql*'
5
5
rm -fr /etc/mysql
6
6
rm -fr /var/lib/mysql
7
7
8
- apt-key add support/C74CD1D8.asc
9
- add-apt-repository " deb https://deb.mariadb.org/11.4/ubuntu $( lsb_release -cs) main"
8
+ RELEASE=$( lsb_release -cs)
9
+ VERSION=11.4
10
+
11
+ tee << - EOF > /etc/apt/sources.list.d/mariadb.sources
12
+ X-Repolib-Name: MariaDB
13
+ Types: deb
14
+ # URIs: https://deb.mariadb.org/$VERSION /ubuntu
15
+ URIs: https://mirror.rackspace.com/mariadb/repo/$VERSION /ubuntu
16
+ Suites: $RELEASE
17
+ Components: main main/debug
18
+ Signed-By: /etc/apt/keyrings/mariadb-keyring.asc
19
+ EOF
20
+
21
+ cp support/C74CD1D8.asc /etc/apt/keyrings/mariadb-keyring.asc
22
+ apt update
10
23
apt install -y -o Dpkg::Options::=' --force-confnew' mariadb-server libmariadb-dev
You can’t perform that action at this time.
0 commit comments