Dockerfile aktualisiert
This commit is contained in:
17
Dockerfile
17
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 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
|
RUN echo 'export PS1="\u@$(hostname):\\$ "' >> /etc/profile
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user