Browse Source

update start.sh in order to compatible with supervisor

tags/v1.2.0-rc1
codeskyblue 11 years ago
parent
commit
9a3e1790a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      start.sh

+ 1
- 1
start.sh View File

@@ -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…
Cancel
Save