summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeskyblue <codeskyblue@gmail.com>2014-07-15 10:20:05 +0800
committercodeskyblue <codeskyblue@gmail.com>2014-07-15 10:20:05 +0800
commit9a3e1790a1a9d7b8b172ec6bfa3d9f579a86477a (patch)
treec21f19f2d1a39da245873ea63b6c436466684d3f
parent3969d704a014c54e55281cd9b30e622acbd447c4 (diff)
downloadgitea-9a3e1790a1a9d7b8b172ec6bfa3d9f579a86477a.tar.gz
gitea-9a3e1790a1a9d7b8b172ec6bfa3d9f579a86477a.zip
update start.sh in order to compatible with supervisor
-rwxr-xr-xstart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/start.sh b/start.sh
index 3b974378e5..709a10265a 100755
--- a/start.sh
+++ b/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