summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2014-11-20 12:23:25 +0000
committerJacob Vosmaer <jacob@gitlab.com>2014-11-20 12:23:25 +0000
commitb036300f0ac7442c488a6eef6a85c3f6cb77d7fd (patch)
tree807a14d1164d07cb160e5f12465ab2e48e21dfc4
parent20cd7a50be263f954ffc7157892e94aa09f78d04 (diff)
parenta72a919ae5cf8d8984fef50ed3cac141fe17cc66 (diff)
downloadgitlab-ce-b036300f0ac7442c488a6eef6a85c3f6cb77d7fd.tar.gz
Merge branch 'rebuild-keys' into 'master'
Rebuild keys This was clearly lacking for the documenation. See merge request !1267
-rw-r--r--doc/raketasks/maintenance.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/raketasks/maintenance.md b/doc/raketasks/maintenance.md
index f6bd7565799..8bef92e55fe 100644
--- a/doc/raketasks/maintenance.md
+++ b/doc/raketasks/maintenance.md
@@ -122,3 +122,27 @@ sudo -u git -H mkdir -p /home/git/gitlab-satellites
sudo -u git -H bundle exec rake gitlab:satellites:create RAILS_ENV=production
sudo chmod u+rwx,g=rx,o-rwx /home/git/gitlab-satellites
```
+
+## Rebuild authorized_keys file
+
+In some case it is necessary to rebuild the `authorized_keys` file.
+
+
+For Omnibus-packages:
+```
+sudo gitlab-rake gitlab:shell:setup
+```
+
+For installations from source:
+```
+cd /home/git/gitlab
+sudo -u git -H bundle exec rake gitlab:shell:setup RAILS_ENV=production
+```
+
+```
+This will rebuild an authorized_keys file.
+You will lose any data stored in authorized_keys file.
+Do you want to continue (yes/no)? yes
+
+............................
+```