From 18baac03aa58e685f9cc86c6d93b30b20f6a16ef Mon Sep 17 00:00:00 2001 From: Andrei Condurachi Date: Fri, 27 Nov 2020 11:44:27 +0200 Subject: [PATCH] Bash update --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3482bc1..d514215 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,7 @@ RUN apk add --no-cache \ shadow # Change shell to bash -RUN usermod -s /bin/bash root && /bin/bash +RUN usermod -s /bin/bash root && bash # Bash config updates for root user RUN cd && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" # Initialize bash updates @@ -104,7 +104,7 @@ RUN chown -R apache:apache /var/log/apache2 RUN chown -R apache:apache /run/apache2 # Change shell for apache user so that it can login -RUN usermod -s /bin/bash apache && /bin/bash +RUN usermod -s /bin/bash apache # Some shell aliases RUN echo "alias l='ls -la' \ @@ -114,6 +114,8 @@ RUN echo "alias l='ls -la' \ ### Continue execution as Apache user ### USER apache +# Change to bash +RUN bash # Bash config updates for apache user RUN cd && bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" # Initialize bash updates