Allow start.sh from any working directory

This change to start.sh allows it to be executed from any working directory and always reference the gogs binary in the parent directory. Very helpful when calling start.sh from an init script.
release/v0.9
Clint Armstrong 9 years ago
parent bb26285a12
commit eae08ea8f4

@ -12,4 +12,4 @@ USER=$(whoami)
HOME=$(grep "^$USER:" /etc/passwd | cut -d: -f6)
export USER HOME PATH
cd "$(pwd)" && exec ./gogs web
cd "$(dirname "$0")/.." && exec ./gogs web

Loading…
Cancel
Save