fix gitea
This commit is contained in:
parent
faf953f718
commit
590bb561ad
4 changed files with 22 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=1.16.3
|
||||
RELEASE=1
|
||||
RELEASE=2
|
||||
|
||||
[ -e ./lib/function.sh ] && source ./lib/function.sh
|
||||
|
||||
|
@ -38,7 +38,7 @@ prebuild(){
|
|||
build() {
|
||||
cd /tmp/${APP}/
|
||||
PATH=$PATH:/usr/local/go/bin
|
||||
make
|
||||
TAGS="bindata sqlite sqlite_unlock_notify" make build
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
|
|
|
@ -12,15 +12,15 @@ After=network.target
|
|||
#LimitNOFILE=65535
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=git
|
||||
Group=git
|
||||
WorkingDirectory=/var/lib/gitea/work_dir
|
||||
User=gitea
|
||||
Group=gitea
|
||||
WorkingDirectory=/var/lib/gitea/
|
||||
# If using Unix socket: tells systemd to create the /run/gitea folder, which will contain the gitea.sock file
|
||||
# (manually creating /run/gitea doesn't work, because it would not persist across reboots)
|
||||
#RuntimeDirectory=gitea
|
||||
ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini
|
||||
Restart=always
|
||||
Environment=USER=git HOME=/var/lib/gitea/ GITEA_WORK_DIR=/var/lib/gitea/work_dir
|
||||
Environment=USER=gitea HOME=/var/lib/gitea/ GITEA_WORK_DIR=/var/lib/gitea/
|
||||
# If you install Git to directory prefix other than default PATH (which happens
|
||||
# for example if you install other versions of Git side-to-side with
|
||||
# distribution version), uncomment below line and add that prefix to PATH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue