Fix root password set for percona repo package

When the percona-cluster repository is used the name of the package
is percona-xtradb-cluster-server not percona-server-server.
Add percona-xtradb-cluster-server to the debconf set selections so
the root password can be set.

Change-Id: Ic15e03aaa7bab1db27ca1294584e51c4014fcd96
Closes-Bug: #1662642
This commit is contained in:
David Ames 2017-02-07 16:13:42 -08:00
parent 7552fb13bf
commit 95813ef323
1 changed files with 2 additions and 1 deletions

View File

@ -219,7 +219,8 @@ def configure_mysql_root_password(password):
dconf = Popen(['debconf-set-selections'], stdin=PIPE)
# Set both percona and mysql password options to cover
# both upstream and distro packages.
packages = ["percona-server-server", "mysql-server"]
packages = ["percona-server-server", "mysql-server",
"percona-xtradb-cluster-server"]
m_helper = get_db_helper()
root_pass = m_helper.get_mysql_root_password(password)
for package in packages: