Commit 76ebdd051fde9fc08575b3ea546b7ed63b6f8e46
1 parent
fa8219e0
Exists in
master
and in
4 other branches
Fix gl-setup PATH warning when executing gl-system-install.
My git user uses bash (so .bash_profile), but I think it should work the same for sh shell.
Full warning message:
***** WARNING *****
gl-setup is not in your $PATH.
Since gl-setup MUST be run from the PATH (and not as src/gl-setup or such),
you must fix this before running gl-setup. The simplest way is to add
PATH=/home/git/bin:$PATH
to the end of your bashrc or similar file. You can even simply run that
command manually each time you log in and want to run a gitolite command.
Run /home/git/gitolite/src/gl-system-install -h for a detailed usage message.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
doc/installation.md
| ... | ... | @@ -101,7 +101,8 @@ Get gitolite source code: |
| 101 | 101 | |
| 102 | 102 | Setup: |
| 103 | 103 | |
| 104 | - sudo -u git -H /home/git/gitolite/src/gl-system-install | |
| 104 | + sudo -u git sh -c 'echo "PATH=\$PATH:/home/git/bin\nexport PATH" > /home/git/.profile' | |
| 105 | + sudo -u git -i -H /home/git/gitolite/src/gl-system-install | |
| 105 | 106 | sudo cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub |
| 106 | 107 | sudo chmod 777 /home/git/gitlab.pub |
| 107 | 108 | ... | ... |