Permalink
Browse files

New install script that loads RVM and all the dependencies into the t…

…arget system
  • Loading branch information...
Daniel Martin
Daniel Martin committed Mar 19, 2012
1 parent cd8c7b3 commit 85e03b389f13eaf5d1c185780e40f54186afee88
Showing with 29 additions and 0 deletions.
  1. +29 −0 install.sh
View
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+#
+# Dradis Framework installation script
+#
+# Description:
+# This script will install all the necessary dependencies required to run the
+# Dradis Framework.
+#
+# If any of them should be run as root, the script will provide the instructions
+# to do so.
+#
+# License:
+# This file may be used under the terms of the GNU General Public
+# License version 2.0 as published by the Free Software Foundation
+# and appearing in the file LICENSE.txt included in the packaging of
+# this file.
+#
+# Copyright: Security Roots Ltd.
+
+
+echo "Installing RVM (Ruby Version Manager) ..."
+if [ -d ~/.rvm ]; then
+ echo "RVM already installed under $HOME/.rvm/"
+ rvm version
+else
+ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
+ # [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
+ source ~/.bash_profile
+fi

0 comments on commit 85e03b3

Please sign in to comment.