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
This commit is contained in:
parent
62002dd88b
commit
9033343733
@ -138,10 +138,10 @@ function install_database_mysql {
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user