Skip to content

Commit

Permalink
Remove obsolete ~/.bashrc creation code from base image entrypoint
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
  • Loading branch information
AObuchow committed Oct 13, 2023
1 parent c88b6ac commit 0a20adb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions base/ubi8/entrypoint.sh
Expand Up @@ -5,11 +5,6 @@ if [ ! -d "${HOME}" ]; then
mkdir -p "${HOME}"
fi

# Setup $PS1 for a consistent and reasonable prompt
if [ -w "${HOME}" ] && [ ! -f "${HOME}"/.bashrc ]; then
echo "PS1='[\u@\h \W]\$ '" > "${HOME}"/.bashrc
fi

# Add current (arbitrary) user to /etc/passwd and /etc/group
if ! whoami &> /dev/null; then
if [ -w /etc/passwd ]; then
Expand Down

0 comments on commit 0a20adb

Please sign in to comment.