mirror of
https://github.com/go-gitea/gitea
synced 2024-10-31 08:43:34 +01:00
update start.sh in order to compatible with supervisor
This commit is contained in:
parent
3969d704a0
commit
9a3e1790a1
2
start.sh
2
start.sh
@ -8,8 +8,8 @@
|
|||||||
IFS='
|
IFS='
|
||||||
'
|
'
|
||||||
PATH=/bin:/usr/bin:/usr/local/bin
|
PATH=/bin:/usr/bin:/usr/local/bin
|
||||||
HOME=${HOME:?"need \$HOME variable"}
|
|
||||||
USER=$(whoami)
|
USER=$(whoami)
|
||||||
|
HOME=$(grep "^$USER:" /etc/passwd | cut -d: -f6)
|
||||||
export USER HOME PATH
|
export USER HOME PATH
|
||||||
|
|
||||||
cd "$(dirname $0)" && exec ./gogs web
|
cd "$(dirname $0)" && exec ./gogs web
|
||||||
|
Loading…
Reference in New Issue
Block a user