Init script broken on FreeBSD
Created by: clorichel
I'm sorry to say @drunkard commit https://github.com/gitlabhq/gitlabhq/commit/4c5adb702caef0aebe0d10416521e24e68fa0801 broke the init script on FreeBSD.
See https://github.com/gitlabhq/gitlabhq/blob/master/lib/support/init.d/gitlab#L47
Without -s $shell_path
it works like a charm.
For sure, yes I replaced shell_path
to "/usr/local/bin/bash"
FreeBSD man page for su
gives the clue : -s
has nothing to do with a shell choice on FreeBSD...
see https://www.freebsd.org/cgi/man.cgi?query=su&apropos=0&sektion=0&manpath=FreeBSD+10.2-stable&arch=default&format=html
Without altering https://github.com/gitlabhq/gitlabhq/blob/master/lib/support/init.d/gitlab#L47 to remove the -s $shell_path
part, on FreeBSD you get stuck to git shell with nothing starting :
root@host:/usr/home/git/gitlab # service gitlab start
[git@host ~]$