Skip to content
Snippets Groups Projects
Commit faa6a34a authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Bump gitlab-shell in 5.4 and 6.2

parent 88c15909
No related branches found
No related tags found
1 merge request!1Fix Links To Gitlab Cloud
Loading
@@ -22,7 +22,7 @@ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
Loading
@@ -22,7 +22,7 @@ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
```bash ```bash
cd /home/git/gitlab cd /home/git/gitlab
sudo -u git -H git fetch sudo -u git -H git fetch
sudo -u git -H git checkout 5-4-stable sudo -u git -H git checkout 5-4-stable # Latest version of 5-4-stable addresses CVE-2013-4489
``` ```
   
### 3. Update gitlab-shell ### 3. Update gitlab-shell
Loading
@@ -30,7 +30,7 @@ sudo -u git -H git checkout 5-4-stable
Loading
@@ -30,7 +30,7 @@ sudo -u git -H git checkout 5-4-stable
```bash ```bash
cd /home/git/gitlab-shell cd /home/git/gitlab-shell
sudo -u git -H git fetch sudo -u git -H git fetch
sudo -u git -H git checkout v1.5.0 sudo -u git -H git checkout v1.7.4 # Addresses CVE-2013-4490
``` ```
   
### 4. Install libs, migrations, etc. ### 4. Install libs, migrations, etc.
Loading
Loading
Loading
@@ -24,17 +24,25 @@ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
Loading
@@ -24,17 +24,25 @@ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
```bash ```bash
cd /home/git/gitlab cd /home/git/gitlab
sudo -u git -H git fetch sudo -u git -H git fetch
sudo -u git -H git checkout 6-2-stable sudo -u git -H git checkout 6-2-stable # Latest version of 6-2-stable addresses CVE-2013-4489
``` ```
   
### 3. Install additional packages ### 3. Update gitlab-shell
```bash
cd /home/git/gitlab-shell
sudo -u git -H git fetch
sudo -u git -H git checkout v1.7.4 # Addresses CVE-2013-4490
```
### 4. Install additional packages
   
```bash ```bash
# Add support for lograte for better log file handling # Add support for lograte for better log file handling
sudo apt-get install logrotate sudo apt-get install logrotate
``` ```
   
### 4. Install libs, migrations, etc. ### 5. Install libs, migrations, etc.
   
```bash ```bash
cd /home/git/gitlab cd /home/git/gitlab
Loading
@@ -52,7 +60,7 @@ sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
Loading
@@ -52,7 +60,7 @@ sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production sudo -u git -H bundle exec rake cache:clear RAILS_ENV=production
``` ```
   
### 5. Update config files ### 6. Update config files
   
TIP: to see what changed in gitlab.yml.example in this release use next command: TIP: to see what changed in gitlab.yml.example in this release use next command:
   
Loading
@@ -74,7 +82,7 @@ sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers
Loading
@@ -74,7 +82,7 @@ sudo -u git -H cp config/initializers/rack_attack.rb.example config/initializers
sudo cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab sudo cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab
``` ```
   
### 6. Update Init script ### 7. Update Init script
   
```bash ```bash
sudo rm /etc/init.d/gitlab sudo rm /etc/init.d/gitlab
Loading
@@ -82,12 +90,12 @@ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlabhq/6
Loading
@@ -82,12 +90,12 @@ sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlabhq/6
sudo chmod +x /etc/init.d/gitlab sudo chmod +x /etc/init.d/gitlab
``` ```
   
### 7. Start application ### 8. Start application
   
sudo service gitlab start sudo service gitlab start
sudo service nginx restart sudo service nginx restart
   
### 8. Check application status ### 9. Check application status
   
Check if GitLab and its environment are configured correctly: Check if GitLab and its environment are configured correctly:
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment