ruby config option added to install software script.

This commit is contained in:
2019-11-15 19:51:17 +00:00
parent e371b8c685
commit 74e2795bc5
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -94,6 +94,6 @@ esac
# ----------------------------------------------------------
echo "----- Done ------------------------------------------"
echo "to take effect now, you may need to run:"
echo "to take effect now, you need to run:"
echo "source ~/.bashrc"
+24
View File
@@ -80,3 +80,27 @@ install_collection 'mariadb-server' mariadb-server
echo "----- Install ruby + build-essential ----------------"
install_collection 'ruby, build-essential' ruby-full build-essential zlib1g-dev
echo "----- Append ruby gems to ~/.bashrc -----------------"
read -p 'Set GEM_HOME and append path with gems/bin? [y/N]: ' add_gems
case $add_gems in
[Yy]* )
echo 'Appending ~/.bashrc'
(
cat << 'RUBY'
# Install Ruby Gems to ~/gems
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
RUBY
) >> "$HOME/.bashrc"
echo "----- Done ------------------------------------------"
echo "to take effect now, you need to run:"
echo "source ~/.bashrc"
;;
* )
echo 'Skipping'
;;
esac