1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-22 10:31:34 -05:00

Update install.sh

This commit is contained in:
Sagnik Sasmal 2020-09-12 05:11:25 +05:30 committed by GitHub
parent 91d006d69a
commit 3b79caf007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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...'