diff --git a/app/views/errors/gitolite.html.haml b/app/views/errors/gitolite.html.haml
index ccee757378d..3691b309698 100644
--- a/app/views/errors/gitolite.html.haml
+++ b/app/views/errors/gitolite.html.haml
@@ -15,5 +15,5 @@
Try:
%pre
= preserve do
- sudo chmod -R 770 /home/git/repositories/
- sudo chown -R git:git /home/git/repositories/
+ sudo chmod -R 770 #{Gitlab.config.git_base_path}
+ sudo chown -R git:git #{Gitlab.config.git_base_path}
\ No newline at end of file