Skip to content

Commit

Permalink
Tweak MariaDB to account for missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
svpernova09 committed Jul 22, 2020
1 parent c51c7e0 commit 64e535d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/features/mariadb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ apt-get remove -y --purge mysql-server mysql-client mysql-common
apt-get autoremove -y
apt-get autoclean

rm -rf /var/lib/mysql
rm -rf /var/log/mysql
rm -rf /etc/mysql

# Add Maria PPA
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

# Set The Automated Root Password
debconf-set-selections <<< "mariadb-server mysql-server/data-dir select ''"
debconf-set-selections <<< "mariadb-server mysql-server/root_password password secret"
debconf-set-selections <<< "mariadb-server mysql-server/root_password_again password secret"
touch /etc/mysql/debian.cnf

# Install MariaDB
apt-get install -y mariadb-server mariadb-client
Expand Down

0 comments on commit 64e535d

Please sign in to comment.