소스 검색

update start.sh in order to compatible with supervisor

codeskyblue 10 년 전
부모
커밋
9a3e1790a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      start.sh

+ 1 - 1
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