From 9a3e1790a1a9d7b8b172ec6bfa3d9f579a86477a Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Tue, 15 Jul 2014 10:20:05 +0800 Subject: [PATCH] update start.sh in order to compatible with supervisor --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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