From fa925d632c79a2d6154da65ce91e545da945db4d Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Thu, 24 Feb 2022 22:02:22 -0800 Subject: [PATCH] Update container files to include exit script, excludes, and HEREDOCs --- containers/Docker/centos-8 | 33 ++++++++++++++++++++++++--------- containers/Docker/rocky-8 | 34 +++++++++++++++++++++++++--------- 2 files changed, 49 insertions(+), 18 deletions(-) diff --git a/containers/Docker/centos-8 b/containers/Docker/centos-8 index f1fe0f65..da6fc27f 100644 --- a/containers/Docker/centos-8 +++ b/containers/Docker/centos-8 @@ -24,14 +24,29 @@ RUN dnf install -y --allowerasing coreutils \ which \ words -# These changes make it possible for users to ssh into nodes even -# if there is no shadow entry for the user -RUN sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/system-auth -RUN sed -i -e '/^account.*pam_unix\.so\s*$/s/\s*$/\ broken_shadow/' /etc/pam.d/password-auth +RUN <