summaryrefslogtreecommitdiffstats
path: root/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'start.sh')
-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