feature/tech #3

Merged
jtorre merged 8 commits from feature/tech into develop 2023-06-03 14:42:00 -04:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 6ccb1f0d0e - Show all commits

View File

@ -177,7 +177,7 @@ ENV USER_ID "1000"
ENV GROUP_ID "1000"
ENV MEMBERS ""
RUN echo "HELLO!?!?"
RUN echo "HELLO!?!?1"
CMD exec /bin/bash -c "echo \"$MEMBERS\" | sed 's/ /\n/g' | xargs -n 2 /usr/sbin/groupadd -g; \
/usr/sbin/useradd -u $USER_ID -g $USER $USER; \
echo \"$MEMBERS\" | sed 's/ [0-9]\+ /,/g' | sed 's/[0-9]\+ //g' | xargs -I{} /usr/sbin/usermod -aG {} $USER; \

View File

@ -25,7 +25,7 @@ bcli() {
fi
rmdir $HOME/tech
elif [ "$#" -eq 0 ]; then
docker exec -u $(id -u):$(id -g) -it "bcli-$USER" /bin/bash
docker exec -u $(id -u) -it "bcli-$USER" /bin/bash
else
if [ "$1" != "--help" ]; then
echo "error: unrecognized command '$1'"