update start.sh in order to compatible with supervisor
This commit is contained in:
Родитель
3969d704a0
Коммит
9a3e1790a1
2
start.sh
2
start.sh
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче