Archived
1
0
Fork 0

Fix toolbox:

color-prompt.sh is no longer there by default.
This commit is contained in:
J. Elfring 2021-07-03 00:19:05 +02:00
parent 308dfbb2ec
commit 06ce14aae7
3 changed files with 12 additions and 2 deletions

View file

@ -33,7 +33,7 @@ RUN set -x \
&& ln -s /usr/bin/busted-5.2 /usr/local/bin/busted \ && ln -s /usr/bin/busted-5.2 /usr/local/bin/busted \
## ##
## Prosody ## Prosody
&& curl --silent --output /prosody-trunk.tar.gz "https://hg.prosody.im/trunk/archive/0.11.tar.gz" \ && curl --output /prosody-trunk.tar.gz "https://hg.prosody.im/trunk/archive/0.11.tar.gz" \
&& mkdir /prosody-src \ && mkdir /prosody-src \
&& cd /prosody-src \ && cd /prosody-src \
&& tar xzf /prosody-trunk.tar.gz --strip 1 \ && tar xzf /prosody-trunk.tar.gz --strip 1 \

View file

@ -27,7 +27,6 @@ RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/
kubectl kubectl
ADD assets/profile.d/* /etc/profile.d/ ADD assets/profile.d/* /etc/profile.d/
RUN mv /etc/profile.d/color_prompt /etc/profile.d/color_prompt.sh
COPY assets/vimrc /etc/vim/vimrc COPY assets/vimrc /etc/vim/vimrc
WORKDIR /root WORKDIR /root

View file

@ -0,0 +1,11 @@
# Setup a red prompt for root and a green one for users.
# rename this file to color_prompt.sh to actually enable it
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
if [ "$USER" = root ]; then
PS1="$RED\h [$NORMAL\w$RED]# $NORMAL"
else
PS1="$GREEN\h [$NORMAL\w$GREEN]\$ $NORMAL"
fi