gitlab init script fails under CentOS - sudo environment problem
Created by: kosch
I've installed 6.2.3 unter CentOS 6.4. The "service gitlab start" fails with: script/web: line 21: bundle: command not found
"bundle" is located in /usr/local/bin. Unfortunality is this path part not included in PATH when using sudo. Using e.g. su - git -c ... for each command inside the init script would solve this issues and applies an appropriate user environment for execution. Furthermore "ansible" has problems with the usage of sudo inside the init script, but thats a different story.
The workaround is manually add the path to bundle inside .bash_profile.