Browse Source

Update mariadb-install.sh

tweak
tteckster 1 năm trước cách đây
mục cha
commit
daeefafdf9
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      install/mariadb-install.sh

+ 2 - 0
install/mariadb-install.sh

@@ -21,6 +21,8 @@ msg_ok "Installed Dependencies"
 
 
 msg_info "Installing MariaDB"
 msg_info "Installing MariaDB"
 $STD apt-get install -y mariadb-server
 $STD apt-get install -y mariadb-server
+sed -i 's/^# *\(port *=.*\)/\1/' /etc/mysql/my.cnf
+sed -i 's/^bind-address/#bind-address/g' /etc/mysql/mariadb.conf.d/50-server.cnf
 msg_ok "Installed MariaDB"
 msg_ok "Installed MariaDB"
 
 
 read -r -p "Would you like to add Adminer? <y/N> " prompt
 read -r -p "Would you like to add Adminer? <y/N> " prompt