Add mariadb socket

This commit is contained in:
Bob Mottram 2017-06-03 16:49:31 +01:00
parent ea5593208f
commit 5ba649d8dd
1 changed files with 7 additions and 0 deletions

View File

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