Added scripts to install ruby and jekyll
This commit is contained in:
parent
e980dce814
commit
1b3dafa624
2 changed files with 19 additions and 0 deletions
7
install_jekyll.sh
Normal file
7
install_jekyll.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install jekyll and bundler
|
||||||
|
# Assuming that Ruby is already installed
|
||||||
|
|
||||||
|
gem install jekyll bundler
|
||||||
|
|
||||||
12
install_ruby.sh
Normal file
12
install_ruby.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Installs Ruby on the current user
|
||||||
|
apt-get install ruby-full build-essential
|
||||||
|
|
||||||
|
# Export some environment variables to bashrc
|
||||||
|
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
|
||||||
|
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
|
||||||
|
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
|
||||||
|
source ~/.bashrc
|
||||||
|
|
||||||
|
echo "Done!"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue