OSDN Git Service

updated githost error page
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 22 Jan 2012 11:00:26 +0000 (13:00 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sun, 22 Jan 2012 11:00:26 +0000 (13:00 +0200)
public/githost_error.html

index 3e9edc3..33996a3 100644 (file)
@@ -11,6 +11,8 @@
     }
     h1 { font-size: 48px; color: #444; line-height: 1.5em; }
     h2 { font-size: 24px; color: #666; line-height: 1.5em; }
+    h3, code { text-align:left; }
+    code pre { margin-left:40px; }
   </style>
 </head>
 
   <!-- This file lives in public/500.html -->
   <div class="dialog">
     <h1>Gitolite Error</h1>
-    <h2>We're sorry, but we cant get access to your gitolite system.</h2>
+    <h2>Application cant get access to your gitolite system.</h2>
+    <hr>
     <h3> 1. Check 'config/gitlab.yml' for correct settings.</h3>
-    <h3> 2. Be sure web server user has access to gitolite.</h3>
+    <h3> 2. Make sure web server user has access to gitolite. <a href="https://github.com/gitlabhq/gitlabhq/wiki/Gitolite">Setup tutorial</a></h3>
+    <h3> 3. Try: </h3>
+    <code>
+        <pre>
+sudo chmod -R 770 /home/git/repositories/
+sudo chown -R git:git /home/git/repositories/
+        </pre>
+    </code>
   </div>
 </body>
 </html>