Commit 9e212e985ddf500881fb51338849940cf53dee24
Committed by
Sergio Oliveira
1 parent
d812e6b0
Exists in
master
and in
39 other branches
Creating Gemsets in rvm script
Rvm script is installing rvm and ruby. It already create gemsets.
Showing
2 changed files
with
10 additions
and
6 deletions
Show diff stats
scripts/gitlab.sh
| @@ -41,17 +41,17 @@ sudo adduser --system --shell /bin/bash --comment 'GitLab' --create-home --home- | @@ -41,17 +41,17 @@ sudo adduser --system --shell /bin/bash --comment 'GitLab' --create-home --home- | ||
| 41 | sudo echo 'git ALL=(ALL) ALL' >> /etc/sudoers.d/git | 41 | sudo echo 'git ALL=(ALL) ALL' >> /etc/sudoers.d/git |
| 42 | ################################################# | 42 | ################################################# |
| 43 | 43 | ||
| 44 | -sudo sh -c "curl -L get.rvm.io | bash -s stable" | 44 | +#sudo sh -c "curl -L get.rvm.io | bash -s stable" |
| 45 | sudo usermod -a -G rvm git | 45 | sudo usermod -a -G rvm git |
| 46 | -source /etc/profile.d/rvm.sh | ||
| 47 | -sudo -iu git source '/usr/local/rvm/scripts/rvm' | ||
| 48 | -sudo -iu git rvm install 2.0.0 | ||
| 49 | -sudo -iu git rvm gemset create gitlab | 46 | +#source /etc/profile.d/rvm.sh |
| 47 | +#sudo -iu git source '/usr/local/rvm/scripts/rvm' | ||
| 48 | +#sudo -iu git rvm install 2.0.0 | ||
| 49 | +#sudo -iu git rvm gemset create gitlab | ||
| 50 | sudo -iu git rvm use 2.0.0@gitlab --default | 50 | sudo -iu git rvm use 2.0.0@gitlab --default |
| 51 | 51 | ||
| 52 | ################################################# | 52 | ################################################# |
| 53 | 53 | ||
| 54 | -sudo -iu git gem install bundler --no-ri --no-rdoc | 54 | +#sudo -iu git gem install bundler --no-ri --no-rdoc |
| 55 | sudo -iu git /usr/local/bin/git clone https://gitlab.com/gitlab-org/gitlab-shell.git | 55 | sudo -iu git /usr/local/bin/git clone https://gitlab.com/gitlab-org/gitlab-shell.git |
| 56 | sudo -iu git /usr/local/bin/git --git-dir=/home/git/gitlab-shell/.git --work-tree=/home/git/gitlab-shell/ reset --hard v1.9.3 | 56 | sudo -iu git /usr/local/bin/git --git-dir=/home/git/gitlab-shell/.git --work-tree=/home/git/gitlab-shell/ reset --hard v1.9.3 |
| 57 | sudo -u git cp /home/git/gitlab-shell/config.yml.example /home/git/gitlab-shell/config.yml | 57 | sudo -u git cp /home/git/gitlab-shell/config.yml.example /home/git/gitlab-shell/config.yml |
scripts/rvm.sh
| @@ -5,4 +5,8 @@ sudo bash -c "curl -L get.rvm.io | bash -s stable" | @@ -5,4 +5,8 @@ sudo bash -c "curl -L get.rvm.io | bash -s stable" | ||
| 5 | 5 | ||
| 6 | # Set rvm on the PATH and install ruby 2.0.0 | 6 | # Set rvm on the PATH and install ruby 2.0.0 |
| 7 | sudo bash -c "source /usr/local/rvm/scripts/rvm && rvm install ruby-2.0.0" | 7 | sudo bash -c "source /usr/local/rvm/scripts/rvm && rvm install ruby-2.0.0" |
| 8 | +sudo bash -c "source /usr/local/rvm/scripts/rvm && rvm gemset create gitlab" | ||
| 9 | +sudo bash -c "source /usr/local/rvm/scripts/rvm && rvm gemset create redmine" | ||
| 8 | 10 | ||
| 11 | +sudo bash -c "source /usr/local/rvm/scripts/rvm && rvm use 2.0.0@gitlab --default" | ||
| 12 | +sudo bash -c "source /usr/local/rvm/scripts/rvm && gem install bundler --no-ri --no-rdoc" |