Updated database connectors.

fix #185
This commit is contained in:
Antoine Nguyen
2018-03-09 15:31:58 +01:00
parent 18022f6941
commit 6ea1114cd8
2 changed files with 4 additions and 12 deletions

View File

@@ -59,9 +59,9 @@ class Automx(base.Installer):
"python-dateutil", "configparser"
]
if self.dbengine == "postgres":
packages.append("psycopg2")
packages.append("psycopg2-binary")
else:
packages.append("MYSQL-Python")
packages.append("mysqlclient")
python.install_packages(packages, self.venv_path, sudo_user=self.user)
target = "{}/master.zip".format(self.home_dir)
if os.path.exists(target):