From d8e527a86adfacfb7f35194a47fee9fe495f71bb Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Wed, 22 Jan 2025 15:28:25 -0600 Subject: [PATCH] Update logind_session_timeout/not_configured.fail to handle if the systemd config is not there --- .../logind_session_timeout/tests/not_configured.fail.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux_os/guide/system/accounts/accounts-physical/logind_session_timeout/tests/not_configured.fail.sh b/linux_os/guide/system/accounts/accounts-physical/logind_session_timeout/tests/not_configured.fail.sh index 7dfaca846f4..918998f0a92 100644 --- a/linux_os/guide/system/accounts/accounts-physical/logind_session_timeout/tests/not_configured.fail.sh +++ b/linux_os/guide/system/accounts/accounts-physical/logind_session_timeout/tests/not_configured.fail.sh @@ -1,4 +1,7 @@ #!/bin/bash # variables = var_logind_session_timeout = 5_minutes +mkdir -p /etc/systemd +touch /etc/systemd/logind.conf + sed -i '/^.*StopIdleSessionSec.*$/d' /etc/systemd/logind.conf