From f17d3eb2032ae7c27b8177dc8a0b96e9adab1b8f Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 1 Nov 2021 21:54:05 -0400 Subject: [PATCH] Update install.sh --- install.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 888af83..3a49e62 100644 --- a/install.sh +++ b/install.sh @@ -329,24 +329,29 @@ install_pterodactyl() { sed -i -- '/bind-address/s/#//g' /etc/mysql/mariadb.conf.d/50-server.cnf sed -i -- '/bind-address/s/127.0.0.1/0.0.0.0/g' /etc/mysql/mariadb.conf.d/50-server.cnf output 'Restarting MySQL process...' - service mysql restart + service mariadb restart elif grep -Fqs "bind-address" /etc/mysql/my.cnf ; then sed -i -- '/bind-address/s/#//g' /etc/mysql/my.cnf sed -i -- '/bind-address/s/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf output 'Restarting MySQL process...' - service mysql restart + service mariadb restart elif grep -Fqs "bind-address" /etc/my.cnf ; then sed -i -- '/bind-address/s/#//g' /etc/my.cnf sed -i -- '/bind-address/s/127.0.0.1/0.0.0.0/g' /etc/my.cnf output 'Restarting MySQL process...' - service mysql restart + service mariadb restart elif grep -Fqs "bind-address" /etc/mysql/my.conf.d/mysqld.cnf ; then sed -i -- '/bind-address/s/#//g' /etc/mysql/my.conf.d/mysqld.cnf sed -i -- '/bind-address/s/127.0.0.1/0.0.0.0/g' /etc/mysql/my.conf.d/mysqld.cnf output 'Restarting MySQL process...' - service mysql restart + service mariadb restart + elif grep -Fqs "bind-address" /etc/my.cnf.d/mariadb-server.cnf ; then + sed -i -- '/bind-address/s/#//g' /etc/my.cnf.d/mariadb-server.cnf + sed -i -- '/bind-address/s/127.0.0.1/0.0.0.0/g' /etc/my.cnf.d/mariadb-server.cnf + output 'Restarting MySQL process...' + service mariadb restart else - output 'A MySQL configuration file could not be detected! Please contact support.' + output 'A MariaDB configuration file could not be detected! Please contact support.' fi output "Downloading Pterodactyl..."