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

check postgresql presence before running

parent 511267b8
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,7 @@ except ImportError:
sys.path.append(str(Path(__file__).parents[1].resolve()))
# pylint: disable=wrong-import-position
from envsetup import utils as u # noqa: E402
import utils as u
def is_ha(port: int) -> bool:
......@@ -380,6 +379,10 @@ def check_local(db_conn: dict, errors: int = 0) -> int:
def main():
"""Run all checks and exits with corresponding exit code."""
apt = u.apt.Apt()
if "postgresql" not in apt.installed_packages:
exit(2)
# load configuration
conf = u.load_conf()
......
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