Skip to content

Commit

Permalink
few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfireap committed Aug 30, 2023
1 parent 23a6101 commit 4782000
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modoboa_installer/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_package_version(name, venv=None, **kwargs):
f"Output is: {output}")
sys.exit(1)

output_list = output.split("\n")
output_list = output.decode().split("\n")
version_item_list = output_list[1].split(":")
version_list = version_item_list[1].split(".")
version_list_clean = []
Expand Down
5 changes: 4 additions & 1 deletion modoboa_installer/scripts/modoboa.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ def get_packages(self):
packages += ["openssl-devel"]
return packages

def setup_user(self):
super().setup_user()
self._setup_venv()

def get_config_files(self):
"""Return appropriate path."""
config_files = super().get_config_files()
Expand Down Expand Up @@ -292,7 +296,6 @@ def apply_settings(self):

def post_run(self):
"""Additional tasks."""
self._setup_venv()
self._deploy_instance()
if not self.upgrade:
self.apply_settings()
Expand Down

0 comments on commit 4782000

Please sign in to comment.