Skip to content

Commit

Permalink
fix groupdel for r8
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbreen committed Sep 2, 2023
1 parent 3e68192 commit c0285bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executors/rockylinux/8/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ RUN --mount=type=cache,sharing=private,target=/var/cache/yum \
yum install --setopt=keepcache=1 --assumeyes rpm-build python3 glibc-devel libstdc++-devel gcc sudo
# Allow the bazelbuild user to install and erase RPM's when testing them
RUN echo "bazelbuild ALL = NOPASSWD: /bin/rpm *, /usr/bin/rpm *" > /etc/sudoers.d/bazelbuild
RUN getent group 100 | while IFS=: read group _ gid; do groupdel --force ${group:?}; done
RUN getent group 100 | while IFS=: read group _ gid; do groupdel -f ${group:?}; done
RUN getent passwd 1000 | while IFS=: read user _ uid; do userdel --remove ${user:?}; done

0 comments on commit c0285bc

Please sign in to comment.