Commit a87f5c60 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #3862 from crazyscience/patch-3

Setting the working directory before git operations
parents 4604b67b ac88d512
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
### 2. Update GitLab ### 2. Update GitLab
```bash ```bash
# Set the working directory
cd /home/gitlab/gitlab/
# Get latest code # Get latest code
sudo -u gitlab -H git fetch sudo -u gitlab -H git fetch
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
### 2. Update code & db ### 2. Update code & db
```bash ```bash
#Set the working directory
cd /home/gitlab/gitlab/
# Get latest code # Get latest code
sudo -u gitlab git fetch sudo -u gitlab git fetch
......
...@@ -19,6 +19,7 @@ sudo chsh -s /bin/bash git ...@@ -19,6 +19,7 @@ sudo chsh -s /bin/bash git
__2. git clone gitlab-shell__ __2. git clone gitlab-shell__
``` ```
cd /home/git/
sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git /home/git/gitlab-shell sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git /home/git/gitlab-shell
``` ```
......
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