[sysvinit CentOS 6/GitLab 7] Fix PATH_PATCH from including SSH MOTD/banner data
I encountered an issue with the older init script for CentOS 6/GitLab 7 with the PATH_PATCH
variable. As I have a SSH banner/MOTD configured to display on SSH login this output is being stored in the variable. This then broke the service script from working when issuing commands like service gitlab start
etc.
In order to workaround it, I edited the command to only place the last line of output in the variable which is the important $PATH
value to make the init script work correctly.