Should append to .profile rather than overwriting it as it might have existing contents

This commit is contained in:
Daniel Thomas 2012-07-10 12:47:30 +02:00
parent 666cdb2279
commit 4a21f09029
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ Get gitolite source code:
Setup:
sudo -u git sh -c 'echo -e "PATH=\$PATH:/home/git/bin\nexport PATH" > /home/git/.profile'
sudo -u git sh -c 'echo -e "PATH=\$PATH:/home/git/bin\nexport PATH" >> /home/git/.profile'
sudo -u git -H sh -c "PATH=/home/git/bin:$PATH; /home/git/gitolite/src/gl-system-install"
sudo cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
sudo chmod 777 /home/git/gitlab.pub