Last active
February 10, 2017 15:48
-
-
Save raykao/820d661e7822f38ec0e09ceea27f71fb to your computer and use it in GitHub Desktop.
Scripted mariadb 10.1 install on Ubuntu without user interaction and auto password entry.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export DEBIAN_FRONTEND="noninteractive" | |
export PASSWORD="H3ll0W0rld!" | |
sudo debconf-set-selections <<< "mariadb-server mysql-server/root_password password $PASSWORD" | |
sudo debconf-set-selections <<< "mariadb-server mysql-server/root_password_again password $PASSWORD" | |
sudo apt-get install software-properties-common | |
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 | |
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ca.mirror.babylon.network/mariadb/repo/10.1/ubuntu xenial main' | |
sudo apt update | |
sudo apt install -y mariadb-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment