Skip to content

Instantly share code, notes, and snippets.

@QiXuanWang
QiXuanWang / rPi3-mariadb-10.1.sh
Created February 17, 2017 14:14 — forked from Lewiscowles1986/rPi3-mariadb-10.1.sh
Raspberry Pi MariaDB 10.1 with Galera Cluster build
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list
echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release