Set password irrespective of mysql server version
Ubuntu recently upgraded from 5.1 to 5.5 so the previous debconf
settings no longer work. Removing the version number should make
the settings work for all versions of mysql
Change-Id: I6b399a06232364d3ba3bf74430b663e0b8b922ed
diff --git a/lib/databases/mysql b/lib/databases/mysql
index 45484c1..7bd74dc 100644
--- a/lib/databases/mysql
+++ b/lib/databases/mysql
@@ -138,10 +138,10 @@
if is_ubuntu; then
# Seed configuration with mysql password so that apt-get install doesn't
# prompt us for a password upon install.
- cat <<MYSQL_PRESEED | sudo debconf-set-selections
-mysql-server-5.1 mysql-server/root_password password $DATABASE_PASSWORD
-mysql-server-5.1 mysql-server/root_password_again password $DATABASE_PASSWORD
-mysql-server-5.1 mysql-server/start_on_boot boolean true
+ sudo debconf-set-selections <<MYSQL_PRESEED
+mysql-server mysql-server/root_password password $DATABASE_PASSWORD
+mysql-server mysql-server/root_password_again password $DATABASE_PASSWORD
+mysql-server mysql-server/start_on_boot boolean true
MYSQL_PRESEED
fi