Commit 40a7b50d authored by w4t's avatar w4t

wtserver 0.82

parent ff110f6f
......@@ -148,10 +148,10 @@ default-authentication-plugin=mysql_native_password
elif [ $CFG_SQLSERVER == "MariaDB" ]; then
echo -n -e "$IDENTATION_LVL_0 ${BWhite}Installing MariaDB...${NC}\n"
echo -n -e "$IDENTATION_LVL_1 Setting debconf selections... "
echo "maria-server-11.8.1 mysql-server/root_password password '$CFG_MYSQL_ROOT_PWD'" | debconf-set-selections
echo "maria-server-11.8.1 mysql-server/root_password_again password '$CFG_MYSQL_ROOT_PWD'" | debconf-set-selections
echo -e "[${green}DONE${NC}]"
#echo -n -e "$IDENTATION_LVL_1 Setting debconf selections... "
#echo "maria-server-11.8.1 mysql-server/root_password password '$CFG_MYSQL_ROOT_PWD'" | debconf-set-selections
#echo "maria-server-11.8.1 mysql-server/root_password_again password '$CFG_MYSQL_ROOT_PWD'" | debconf-set-selections
#echo -e "[${green}DONE${NC}]"
echo -n -e "$IDENTATION_LVL_1 Installing MariaDB Server & Client... "
apt_install software-properties-common dirmngr apt-transport-https
......@@ -160,7 +160,8 @@ default-authentication-plugin=mysql_native_password
apt_update
apt_install mariadb-client mariadb-server
echo -e "[${green}DONE${NC}]"
mariadb -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('$CFG_MYSQL_ROOT_PWD'); FLUSH PRIVILEGES;"
#echo -n -e "$IDENTATION_LVL_1 Set password authentication for the root user... "
#echo "ALTER USER 'root'@'localhost' IDENTIFIED BY '$CFG_MYSQL_ROOT_PWD';" > $PROGRAMS_INSTALL_SQLS/mariadbroot.sql
#echo "FLUSH PRIVILEGES;" >> $PROGRAMS_INSTALL_SQLS/mariadbroot.sql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment