Fixing mariadb

This commit is contained in:
Bob Mottram 2017-06-05 14:42:24 +01:00
parent 4992cbe18e
commit dc9ea6ee6b
1 changed files with 4 additions and 5 deletions

View File

@ -162,11 +162,10 @@ function install_mariadb {
exit 34672 exit 34672
fi fi
if [ ! -f /etc/mysql/conf.d/my.cnf ]; then #if [ ! -f /etc/mysql/conf.d/my.cnf ]; then
echo $'/etc/mysql/conf.d/my.cnf not found' # echo $'/etc/mysql/conf.d/my.cnf not found'
exit 6376245 # exit 6376245
fi #fi
echo 'socket = /var/run/mysqld/mysqld.sock' >> /etc/mysql/conf.d/my.cnf
systemctl restart mysql systemctl restart mysql
mysqladmin -u root password "$MARIADB_PASSWORD" mysqladmin -u root password "$MARIADB_PASSWORD"