#!/bin/sh

# hack to make sure mysqld is fully started
sleep 2

/usr/bin/mysql -u root < /usr/share/mysql/mysql_secure_installation.sql
cat > /etc/mysql/conf.d/root-pass.cnf <<EOF
[mysql]
user=root
password=openbricks

[mysqladmin]
user=root
password=openbricks
EOF
end script

exit 0
