mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
first stab at a linux bootstrap
This commit is contained in:
parent
9dcf69a526
commit
17bab54bff
1 changed files with 18 additions and 0 deletions
18
bin/bootstrap/bootstrap_el.sh
Normal file
18
bin/bootstrap/bootstrap_el.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $1 == 'now' ]]; then
|
||||
# Install dot's dependencies
|
||||
yum install -y centos-release-scl-rh.noarch
|
||||
yum install rh-ruby24 rh-ruby24-ruby-devel rh-ruby24-rubygem-bundler rh-ruby24-rubygem-rake cmake
|
||||
|
||||
# Make dot usable
|
||||
cd ~/.dotfiles
|
||||
/bin/scl enable rh-ruby24 'bundle install'
|
||||
|
||||
# Install Puppet modules
|
||||
/bin/scl enable rh-ruby24 'bundle exec rake dots:run_r10k'
|
||||
|
||||
# Display tasks that can be run
|
||||
echo 'These are the task that can now be executed:'
|
||||
/bin/scl enable rh-ruby24 'bundle exec rake -T' |grep --color=never 'rake dots'
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue