Many updates.
This commit is contained in:
parent
a3a0d1b51c
commit
7ccb1aa296
37 changed files with 96 additions and 43 deletions
1
etc/sv/forgejo/.gitignore
vendored
Normal file
1
etc/sv/forgejo/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/supervise
|
1
etc/sv/forgejo/log/.gitignore
vendored
Normal file
1
etc/sv/forgejo/log/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/supervise
|
2
etc/sv/forgejo/log/run
Executable file
2
etc/sv/forgejo/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec vlogger -t forgejo -p daemon
|
13
etc/sv/forgejo/run
Executable file
13
etc/sv/forgejo/run
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
|
||||
# USER and HOME are needed because gitea doesn't actually check the user it
|
||||
# runs as, but instead just grabs the variables from the variables.
|
||||
export USER=_forgejo
|
||||
export HOME=/data/var/forgejo
|
||||
|
||||
# gitea needs to run from its home for SSH to work properly
|
||||
export GITEA_WORK_DIR="${HOME}"
|
||||
|
||||
cd "${HOME}"
|
||||
exec chpst -u _forgejo:_forgejo /opt/bin/forgejo web --config /etc/forgejo.conf 2>&1
|
Loading…
Add table
Add a link
Reference in a new issue