3 ms·
Nope, git user is created, but I just use su to do things as git. If you're running as root using sudo doesn't make sense, thats what su is for. https://gist.g
by mitchty 13y ago
Nope, git user is created, but I just use su to do things as git. If you're running as root using sudo doesn't make sense, thats what su is for.
https://gist.github.com/mitchty/6b9bc8c7dd41cd925b82#file-gitlab-sh-L42 https://gist.github.com/mitchty/6b9bc8c7dd41cd925b82#file-gi...
Thats basically it, nothing overly special, just switched sudo for su mainly. I could test to see if i'm root and then su or then sudo but don't see a point.
- sytse 13y agoI agree. In the installation manual most commands are 'sudo -u git', they run as the git user but they use sudo to make them foolproof (some people skip the instruction to login as the git user).