Skip to content

Commit fe8dd36

Browse files
authored
Change home in systemd service
1 parent 864bf71 commit fe8dd36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

containers/Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN dnf install -y git git-lfs openssh-server \
99
&& curl -fsSL https://codeberg.org/forgejo/forgejo/releases/download/v9.0.3/forgejo-9.0.3-linux-amd64 -o /usr/local/bin/forgejo \
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 \
12+
&& sed -i 's/HOME=\/home\/git/HOME=\/var\/home\/git/' /etc/systemd/system/forgejo.service \
1213
&& systemctl enable forgejo.service \
1314
&& systemctl enable sshd.service \
1415
&& chmod 640 /etc/shadow

0 commit comments

Comments
 (0)