Skip to content
Snippets Groups Projects
Commit e5c4da0c authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix apt module import

parent 789adf45
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ except ImportError: ...@@ -20,6 +20,7 @@ except ImportError:
sys.path.append(str(Path(__file__).parents[1].resolve())) sys.path.append(str(Path(__file__).parents[1].resolve()))
import utils as u import utils as u
from utils.apt import Apt
def is_ha(port: int) -> bool: def is_ha(port: int) -> bool:
...@@ -379,7 +380,7 @@ def check_local(db_conn: dict, errors: int = 0) -> int: ...@@ -379,7 +380,7 @@ def check_local(db_conn: dict, errors: int = 0) -> int:
def main(): def main():
"""Run all checks and exits with corresponding exit code.""" """Run all checks and exits with corresponding exit code."""
apt = u.apt.Apt() apt = Apt()
if "postgresql" not in apt.installed_packages: if "postgresql" not in apt.installed_packages:
exit(2) exit(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment