Skip to content

Commit f0734d5

Browse files
committed
fix: setup_ser.sh
1 parent 272b683 commit f0734d5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ RUN tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
1717

1818
RUN /runner/bin/installdependencies.sh
1919

20+
# Setup script for groups and users to accommodate some of ocflib's tests
21+
COPY setup_user.sh .
22+
RUN ./setup_user.sh
23+
2024
# Runner config commands cannot be run by root
2125
RUN useradd -m ocf
2226
RUN chown -R ocf /runner
@@ -26,10 +30,5 @@ USER ocf
2630
RUN pipx install poetry
2731
ENV PATH="/home/ocf/.local/bin:${PATH}"
2832

29-
# Setup script for groups and users to accommodate some of ocflib's tests
30-
COPY setup_user.sh .
31-
RUN chmod +x setup_user.sh
32-
RUN ./setup_user.sh
33-
3433

3534
CMD ["./start.sh"]

setup_user.sh

100644100755
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
22
set -e
33

4-
groupadd ocf
54
groupadd ocfroot
65
groupadd opstaff
76
groupadd ocfstaff
@@ -25,4 +24,3 @@ usermod -aG ocfstaff staff4
2524

2625
useradd guser
2726
useradd sshd
28-
useradd staff

0 commit comments

Comments
 (0)