1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00

update start.sh in order to compatible with supervisor

This commit is contained in:
codeskyblue 2014-07-15 10:20:05 +08:00
parent 3969d704a0
commit 9a3e1790a1

View file

@ -8,8 +8,8 @@
IFS='
'
PATH=/bin:/usr/bin:/usr/local/bin
HOME=${HOME:?"need \$HOME variable"}
USER=$(whoami)
HOME=$(grep "^$USER:" /etc/passwd | cut -d: -f6)
export USER HOME PATH
cd "$(dirname $0)" && exec ./gogs web