From afb3008c897f1cba7e3b12299635cef22abf426a Mon Sep 17 00:00:00 2001 From: Quickbed Date: Mon, 17 Nov 2025 09:07:21 +0000 Subject: [PATCH] Dockerfile aktualisiert --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Dockerfile b/Dockerfile index b0e044d..bc2319a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,6 +71,23 @@ RUN echo "crime2" > /guide/crime2.txt RUN echo 'if [ -f "/guide/$(whoami).txt" ]; then cat "/guide/$(whoami).txt"; fi' >> /etc/bash.bashrc + +RUN mkdir -p /home/crime5 +RUN chown -R crime5:crime5 /home/crime5 + +# Skript für Typanimation +COPY guide/crime5/typewrite.sh /usr/local/bin/typewrite.sh +RUN chmod +x /usr/local/bin/typewrite.sh + +# Login-Hook für crime5 +RUN echo 'if [ "$(whoami)" = "crime5" ]; then /usr/local/bin/typewrite.sh; fi' >> /home/crime5/.bashrc \ + && chown crime5:crime5 /home/crime5/.bashrc + + + + + + RUN echo 'export PS1="\u@$(hostname):\\$ "' >> /etc/profile