Added missing db driver to automx env.

fix #147
This commit is contained in:
Antoine Nguyen
2017-07-28 16:26:40 +02:00
parent 8c46bbd949
commit af2bd9bde6

View File

@@ -58,6 +58,10 @@ class Automx(base.Installer):
"future", "lxml", "ipaddress", "sqlalchemy", "python-memcached",
"python-dateutil", "configparser"
]
if self.dbengine == "postgres":
packages.append("psycopg2")
else:
packages.append("MYSQL-Python")
python.install_packages(packages, self.venv_path, sudo_user=self.user)
target = "{}/master.zip".format(self.home_dir)
if os.path.exists(target):