Angie and nginx doesn't have --version parameter #159
1 changed files with 4 additions and 1 deletions
|
@ -57,6 +57,9 @@ def get_remote_binaries_versions(hosting: Hosting) -> dict[str, str]:
|
||||||
for binary_name, binary in binary_path_by_name.items():
|
for binary_name, binary in binary_path_by_name.items():
|
||||||
try:
|
try:
|
||||||
binary_path = binary["exec_path"]
|
binary_path = binary["exec_path"]
|
||||||
|
if "angie" in binary_name or "nginx" in binary_name:
|
||||||
|
result = shell.exec(f"{binary_path} -version")
|
||||||
|
else:
|
||||||
result = shell.exec(f"{binary_path} --version")
|
result = shell.exec(f"{binary_path} --version")
|
||||||
versions_at_host[binary_name] = {"version": _parse_version(result.stdout), "check": binary["check"]}
|
versions_at_host[binary_name] = {"version": _parse_version(result.stdout), "check": binary["check"]}
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
|
Loading…
Reference in a new issue