OSDN Git Service

Should append to .profile rather than overwriting it as it might have existing contents
authorDaniel Thomas <drt24@srcf.ucam.org>
Tue, 10 Jul 2012 10:47:30 +0000 (12:47 +0200)
committerDaniel Thomas <drt24@srcf.ucam.org>
Tue, 10 Jul 2012 10:47:30 +0000 (12:47 +0200)
doc/installation.md

index bf579b1..f15eff8 100644 (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