Commit 84114a62 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix sudo commands

parent 47cb6436
...@@ -10,7 +10,7 @@ Make a backup just in case things go south: ...@@ -10,7 +10,7 @@ Make a backup just in case things go south:
```bash ```bash
cd /home/git/gitlab cd /home/git/gitlab
sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
``` ```
### 1. Stop server ### 1. Stop server
...@@ -82,5 +82,5 @@ sudo -u git -H git checkout 6-0-stable ...@@ -82,5 +82,5 @@ sudo -u git -H git checkout 6-0-stable
```bash ```bash
cd /home/git/gitlab cd /home/git/gitlab
sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:restore sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production
``` ```
...@@ -16,7 +16,7 @@ It's useful to make a backup just in case things go south: ...@@ -16,7 +16,7 @@ It's useful to make a backup just in case things go south:
```bash ```bash
cd /home/git/gitlab cd /home/git/gitlab
sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
``` ```
### 1. Stop server ### 1. Stop server
...@@ -97,5 +97,5 @@ Follow the [`upgrade guide from 5.4 to 6.0`](5.4-to-6.0.md), except for the data ...@@ -97,5 +97,5 @@ Follow the [`upgrade guide from 5.4 to 6.0`](5.4-to-6.0.md), except for the data
```bash ```bash
cd /home/git/gitlab cd /home/git/gitlab
sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:restore sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production
``` ```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment