#!/bin/bash

# -----------------------------------------------------------------------------
#
# Setup MySQL
#
# -----------------------------------------------------------------------------

# Load the functions needed to our shell provider
source ${provision_path}/functions.sh

debconf-set-selections <<< 'mysql-server-5.6 mysql-server/root_password password toor'
debconf-set-selections <<< 'mysql-server-5.6 mysql-server/root_password_again password toor'

# Instal the MySQL package
install_packages mysql-server-5.6

# Make sure that Apache is running
# with the latest config files
service mysql restart
