Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

This distro is in beta, and this test worked in a VM, but I haven't put it into Production (yet!, I'm planning on it soon!)

10.1

cat << 'ELO' >galera_freepbx.sh
#!/bin/bash
# FreeSoftwareServers.com

#Remove MariaDB 5.5 w/o Removing Dependencies
package=maria
pkgs=($(rpm -qa | grep "$package"))
for i in "${pkgs[@]}"
do
rpm -e --nodeps $i
done

#Install MariaDB 10.1
cat << 'EOL' >/etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOL
yum install -y MariaDB-server MariaDB-client
systemctl start mariadb.service
systemctl stop mariadb.service
systemctl disable mariadb.service
systemctl stop mysql.service
systemctl disable mysql.service
service mysql start
service mysql status
systemctl enable mysql.service
sleep 5
reboot
ELO
chmod +x galera_freepbx.sh
./galera_freepbx.sh

10.2

 

cat << 'ELO' >galera_freepbx.sh
#!/bin/bash
# FreeSoftwareServers.com

#Remove MariaDB 5.5 w/o Removing Dependencies
package=maria
pkgs=($(rpm -qa | grep "$package"))
for i in "${pkgs[@]}"
do
rpm -e --nodeps $i
done

#Install MariaDB 10.1
cat << 'EOL' >/etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOL
yum install -y MariaDB-server MariaDB-client
systemctl start mariadb.service
systemctl stop mariadb.service
systemctl disable mariadb.service
systemctl stop mysql.service
systemctl disable mysql.service
service mysql start
service mysql status
systemctl enable mysql.service
sleep 5
reboot
ELO
chmod +x galera_freepbx.sh
./galera_freepbx.sh
  • No labels