mirror of
https://github.com/dockersrc/archlinux
synced 2024-11-21 17:23:04 -05:00
🗃️ Committing everything that changed 🗃️
Dockerfile
This commit is contained in:
parent
9e99186bb7
commit
4b42cabf52
@ -80,9 +80,9 @@ RUN set -e; \
|
|||||||
pacman -Sy --noconfirm bash; \
|
pacman -Sy --noconfirm bash; \
|
||||||
SH_CMD="$(which sh 2>/dev/null)"; \
|
SH_CMD="$(which sh 2>/dev/null)"; \
|
||||||
BASH_CMD="$(which bash 2>/dev/null)"; \
|
BASH_CMD="$(which bash 2>/dev/null)"; \
|
||||||
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true; \
|
[ -x "$BASH_CMD" ] && { rm -Rf "$SH_CMD"|| true ;ln -s "$BASH_CMD" "$SH_CMD"; } || true; \
|
||||||
[ -x "$BASH_CMD" ] && [ "$SH_CMD" != "/bin/sh" ] && { rm -Rf "$SH_CMD";ln -s "$BASH_CMD" "$SH_CMD"; } || true; \
|
[ -x "$BASH_CMD" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true; \
|
||||||
[ -x "$BASH_CMD" ] && [ ! -L "/bin/sh" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true
|
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true
|
||||||
|
|
||||||
ENV SHELL="/bin/bash"
|
ENV SHELL="/bin/bash"
|
||||||
SHELL [ "/bin/bash", "-c" ]
|
SHELL [ "/bin/bash", "-c" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user