From bc55ed3efcc9ce8a2e17fdb4e6abf83038a33e60 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Nov 28 2022 00:16:04 +0000 Subject: livesys-main: Only execute session script if it exists If the session script does not exist, we should just gracefully skip past it. --- diff --git a/libexec/livesys/livesys-main b/libexec/livesys/livesys-main index a7c2240..88e6fb8 100755 --- a/libexec/livesys/livesys-main +++ b/libexec/livesys/livesys-main @@ -146,7 +146,9 @@ if [ -f /etc/sysconfig/livesys ]; then . /etc/sysconfig/livesys if [ -n "${livesys_session}" ]; then - . /usr/libexec/livesys/sessions.d/"livesys-${livesys_session}" + if [ -f "/usr/libexec/livesys/sessions.d/livesys-${livesys_session}" ]; then + . /usr/libexec/livesys/sessions.d/"livesys-${livesys_session}" + fi fi fi