Few fixes.

Ubuntu installation (fix #4)
Generate map files when all shortcut is used (see #8)
Fix freshclam execution on Ubuntu
This commit is contained in:
Antoine Nguyen
2015-11-06 09:45:05 +01:00
parent 1824707d76
commit 5496f0caef
7 changed files with 41 additions and 16 deletions

View File

@@ -109,14 +109,10 @@ class MySQL(Database):
def install_package(self):
"""Preseed package installation."""
cfg = (
"mysql-server mysql-server/root_password password {}"
.format(self.dbpassword))
utils.exec_cmd("echo '{}' | debconf-set-selections".format(cfg))
cfg = (
"mysql-server mysql-server/root_password_again password {}"
.format(self.dbpassword))
utils.exec_cmd("echo '{}' | debconf-set-selections".format(cfg))
utils.preconfigure_package(
"mysql-server", "root_password", "password", self.dbpassword)
utils.preconfigure_package(
"mysql-server", "root_password_again", "password", self.dbpassword)
super(MySQL, self).install_package()
def _exec_query(self, query, dbname=None, dbuser=None, dbpassword=None):