From 75c5f6b28420c6e1d3d647a7306014068fdab45b Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Sat, 10 Feb 2018 20:09:05 -0800 Subject: [PATCH] Updated bootstrapping for CentOS --- bin/bootstrap/bootstrap_el.sh | 14 +++++++++----- bin/sclbundle | 2 ++ bin/sclruby | 2 ++ 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100755 bin/sclbundle create mode 100755 bin/sclruby diff --git a/bin/bootstrap/bootstrap_el.sh b/bin/bootstrap/bootstrap_el.sh index 41b988f..5bd8e72 100755 --- a/bin/bootstrap/bootstrap_el.sh +++ b/bin/bootstrap/bootstrap_el.sh @@ -2,17 +2,21 @@ 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 + sudo yum install -y centos-release-scl-rh.noarch + sudo yum install rh-ruby24 rh-ruby24-ruby-devel rh-ruby24-rubygem-bundler rh-ruby24-rubygem-rake cmake gcc # Make dot usable cd ~/.dotfiles - /bin/scl enable rh-ruby24 'bundle install' + cat bin/sclbundle|sudo tee /usr/local/bin/dotbundle > /dev/null + sudo chmod a+x /usr/local/bin/dotbundle + cat bin/sclruby|sudo tee /usr/local/bin/dotruby > /dev/null + sudo chmod a+x /usr/local/bin/dotruby + /usr/local/bin/dotbundle install # Install Puppet modules - /bin/scl enable rh-ruby24 'bundle exec rake dots:run_r10k' + /usr/local/bin/dotbundle 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' + /usr/local/bin/dotbundle exec rake -T |grep --color=never 'rake dots' fi diff --git a/bin/sclbundle b/bin/sclbundle new file mode 100755 index 0000000..a5681f4 --- /dev/null +++ b/bin/sclbundle @@ -0,0 +1,2 @@ +source /opt/rh/rh-ruby24/enable +bundle "$@" diff --git a/bin/sclruby b/bin/sclruby new file mode 100755 index 0000000..66cefc9 --- /dev/null +++ b/bin/sclruby @@ -0,0 +1,2 @@ +source /opt/rh/rh-ruby24/enable +ruby "$@"