0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 22:41:44 +01:00

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.
This commit is contained in:
Clint Armstrong 2015-01-17 16:52:42 -05:00
parent bb26285a12
commit eae08ea8f4

View file

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