gitlab init.d script messes up PATH
Created by: samrocketman
This section of the init.d script messes with the $PATH.
If you add echo $PATH
to the script you'll see the following output.
/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
/sbin:/bin:/usr/sbin:/usr/bin
The first line is the $PATH
of the current user. The second line is the $PATH
of the $app_user
prior to subshelling using this code.
When a user compiles ruby from source it is usually built into /usr/local/bin
. This affects the latest master branch.