Skip to content

Commit

Permalink
install MariaDB rolling release
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Oct 3, 2024
1 parent ebc64bd commit 05c3c35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wordpress_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ done

# Install MariDB repos
install_if_not software-properties-common
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-11.4" --skip-maxscale
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --skip-maxscale
# Avoid i386 since we use x64
sed -i "s|deb http|deb [arch=amd64] http|g" /etc/apt/sources.list.d/mariadb.list
# USed debconf to install it
sudo debconf-set-selections <<< "mariadb-server-11.4 mysql-server/root_password password $MARIADB_PASS"
sudo debconf-set-selections <<< "mariadb-server-11.4 mysql-server/root_password_again password $MARIADB_PASS"
install_if_not mariadb-server-11.4
sudo debconf-set-selections <<< "mariadb-server mysql-server/root_password password $MARIADB_PASS"
sudo debconf-set-selections <<< "mariadb-server mysql-server/root_password_again password $MARIADB_PASS"
install_if_not mariadb-server

# mysql_secure_installation
install_if_not expect
Expand Down

0 comments on commit 05c3c35

Please sign in to comment.