From cef0292c7f4bc0843b5334a7f0941f3b09e4a581 Mon Sep 17 00:00:00 2001 From: Alan Moore Date: Mon, 13 Jan 2025 23:07:12 +0000 Subject: [PATCH] Avoid systemd in container environment --- .../guide/services/mail/has_nonlocal_mta/tests/correct.pass.sh | 2 +- .../guide/services/mail/has_nonlocal_mta/tests/wrong.fail.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux_os/guide/services/mail/has_nonlocal_mta/tests/correct.pass.sh b/linux_os/guide/services/mail/has_nonlocal_mta/tests/correct.pass.sh index c332f0d9cc1..14b25e5f9b9 100644 --- a/linux_os/guide/services/mail/has_nonlocal_mta/tests/correct.pass.sh +++ b/linux_os/guide/services/mail/has_nonlocal_mta/tests/correct.pass.sh @@ -2,4 +2,4 @@ # packages = postfix echo "inet_interfaces = localhost" > /etc/postfix/main.cf -systemctl restart postfix +postfix reload || postfix start diff --git a/linux_os/guide/services/mail/has_nonlocal_mta/tests/wrong.fail.sh b/linux_os/guide/services/mail/has_nonlocal_mta/tests/wrong.fail.sh index 03d0ea05a6f..929ce132a79 100644 --- a/linux_os/guide/services/mail/has_nonlocal_mta/tests/wrong.fail.sh +++ b/linux_os/guide/services/mail/has_nonlocal_mta/tests/wrong.fail.sh @@ -3,4 +3,4 @@ # remediation = none echo "inet_interfaces = all" > /etc/postfix/main.cf -systemctl restart postfix +postfix reload || postfix start