about summary refs log tree commit diff stats
path: root/tools/gitolite.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-07-17 00:07:56 +0100
committerSilvino Silva <silvino@bk.ru>2018-07-17 00:07:56 +0100
commit8e26cc1ca02691e621a82c274e9cfcd90181ccbe (patch)
treeda34dbb85daf65ed993f5b6d56847d7d37cb0cd3 /tools/gitolite.html
parentf5955b57400b065d77fc115c821c18864f3dae02 (diff)
parentfa4a1dbc55e566b6f891636ed0301bf6a188b312 (diff)
downloaddoc-8e26cc1ca02691e621a82c274e9cfcd90181ccbe.tar.gz
release 0.3.5
Diffstat (limited to 'tools/gitolite.html')
-rw-r--r--tools/gitolite.html54
1 files changed, 28 insertions, 26 deletions
diff --git a/tools/gitolite.html b/tools/gitolite.html
index e7b7067..cfb443b 100644
--- a/tools/gitolite.html
+++ b/tools/gitolite.html
@@ -23,7 +23,16 @@
 
         <pre>
         # useradd -r -s /bin/bash -U -m -d /srv/gitolite gitolite
+        </pre>
+
+        <p>Permissions for /srv/gitolite/repositories directories should be
+        0750/drwxr-x---.</p>
+
+        <pre>
         # chown gitolite:gitolite /srv/gitolite
+        $ chmod -R o-rx /srv/gitolite/repositories
+        $ chmod -R g+rx /srv/gitolite/repositories
+        $ chmod -R o+r /srv/gitolite/projects.list
         </pre>
 
         <p>Password is necessary so the user is not
@@ -33,7 +42,6 @@
         <pre>
         # passwd gitolite
         </pre>
-
         <p>Copy public key that will be used for
         authenticating gitolite administrator, read
         <a href="openssh.html#ssh">ssh</a> how to
@@ -734,26 +742,19 @@
         our $projects_list_group_categories = 1;
         </pre>
 
-        <h3>5.2. Configure nginx</h3>
+        <h3>5.2. Configure fcgiwrap</h3>
 
-        <p>Edit /etc/rc.d/fcgiwrap to run as www user member of www group;</p>
+        <p>Edit /etc/rc.d/fcgiwrap to run as www user member of gitolite group;</p>
 
         <pre>
         USER=www
-        GROUP=www
+        GROUP=gitolite
         </pre>
 
-        <p>Permissions for /srv/gitolite/repositories directories should be
-        0750/drwxr-x---.</p>
-
-        <pre>
-        $ chown gitolite:www /srv/gitolite
-        $ chown -R gitolite:www /srv/gitolite/projects.list
-        $ chown -R gitolite:www /srv/gitolite/repositories
-        </pre>
+        <h3>5.3. Configure nginx</h3>
 
         <p>A link from gitweb don't work under grsecurity since user www can't
-        follow simlink to root. Make a copy, later deploy via gitolite hook.</p>
+        follow simlink to root. Making a copy allows to  later deploy via gitolite hook.</p>
 
         <p>Link;</p>
         <pre>
@@ -761,6 +762,7 @@
         </pre>
 
         <p>Copy;</p>
+
         <pre>
         # cp -r /usr/share/gitweb /srv/www
         </pre>
@@ -769,7 +771,7 @@
 	<a href="nginx.html#virtual-host">nginx virtual host</a>;</p>
 
         <pre>
-	location /gitweb/gitweb.cgi {
+	location /git/gitweb.cgi {
             alias /srv/www/gitweb;
 	    include fastcgi_params;
 	    gzip off;
@@ -778,13 +780,13 @@
 	    fastcgi_pass    unix:/var/run/fcgiwrap.sock;
 	}
 
-	location /gitweb {
+	location /git {
 	    alias /srv/www/gitweb;
 	    index gitweb.cgi;
 	}
 	</pre>
 
-        <h3>5.3. Configure gitolite</h3>
+        <h3>5.4. Configure gitolite</h3>
 
         <p>Edit
         <a href="conf/srv/gitolite/.gitolite.rc">/srv/gitolite/.gitolite.rc</a>,
@@ -799,14 +801,6 @@
         GIT_CONFIG_KEYS                 =>  '.*',
         </pre>
 
-        <p>Fix permissions;</p>
-
-        <pre>
-        $ sudo chown -R gitolite:gitolite /srv/gitolite
-        $ sudo chmod g+rx /srv/gitolite/projects.list
-        $ sudo chmod -R 755 /srv/gitolite/repositories/
-        </pre>
-
         <p>Edit gitolite-admin/conf/gitolite.conf;</p>
 
         <pre>
@@ -821,12 +815,20 @@
             config gitweb.category      =   Projects
         </pre>
 
+        <h2 id="git-daemon">6. Git-daemon</h2>
+
+        <p>Configure to run as user;</p>
+
+        <pre>
+        USER=www
+        GROUP=gitolite
+        </pre>
+
         <a href="index.html">Tools Index</a>
-        <p>This is part of the c9-doc Manual.
+        <p>This is part of the Hive System Documentation.
         Copyright (C) 2018
         c9 team.
         See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
         for copying conditions.</p>
-
     </body>
 </html>