Skip to content

Commit 8ef1c12

Browse files
authored
Add shadow fix
1 parent 16ec9b6 commit 8ef1c12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

containers/Containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ RUN dnf install -y git git-lfs openssh-server \
1010
&& chmod +x /usr/local/bin/forgejo \
1111
&& curl -fsSL https://codeberg.org/forgejo/forgejo/raw/branch/forgejo/contrib/systemd/forgejo.service -o /etc/systemd/system/forgejo.service \
1212
&& systemctl enable forgejo.service \
13-
&& systemctl enable sshd.service
13+
&& systemctl enable sshd.service \
14+
&& chmod 640 /etc/shadow
1415

1516
RUN groupadd --system git \
1617
&& useradd --system --shell /bin/bash --comment 'Git Version Control' --gid git --home-dir /home/git --create-home git \

0 commit comments

Comments
 (0)