From 3b79caf007b9edbc59e2144407ac6a3cd844406f Mon Sep 17 00:00:00 2001 From: Sagnik Sasmal <16162562+SagnikSRHUSE@users.noreply.github.com> Date: Sat, 12 Sep 2020 05:11:25 +0530 Subject: [PATCH] Update install.sh --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 85fac28..99e1978 100644 --- a/install.sh +++ b/install.sh @@ -531,22 +531,22 @@ install_pterodactyl() { mysql -u root -e "$SQL" output "Binding MariaDB/MySQL to 0.0.0.0." - if [ grep -Fqs "bind-address" /etc/mysql/mariadb.conf.d/50-server.cnf ] ; then + if grep -Fqs "bind-address" /etc/mysql/mariadb.conf.d/50-server.cnf ; then 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 - elif [ grep -Fqs "bind-address" /etc/mysql/my.cnf ] ; then + 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 - elif [ grep -Fqs "bind-address" /etc/my.cnf ] ; then + 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 - elif [ grep -Fqs "bind-address" /etc/mysql/my.conf.d/mysqld.cnf ] ; then + 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...'