Be less presumptuous about the GNU/Linux distribution we are being run
authorWard Vandewege <ward@curoverse.com>
Sun, 3 Aug 2014 20:30:48 +0000 (22:30 +0200)
committerWard Vandewege <ward@curoverse.com>
Sun, 3 Aug 2014 20:31:51 +0000 (22:31 +0200)
on, and do not try to install ruby >= 1.9.3 automatically.

refs #3363

docker/build.sh

index c9fbf05ff64570c2d7be6e51399f952a242469ec..77aeb1f1878a7d4404e432c08c5ad880b4d0bfed 100755 (executable)
@@ -1,14 +1,11 @@
 #! /bin/bash
 
-# make sure Ruby 1.9.3 is installed before proceeding
+# make sure a Ruby version greater than or equal to 1.9.3 is installed before proceeding
 if ! ruby -e 'exit RUBY_VERSION >= "1.9.3"' 2>/dev/null
 then
-    echo "Installing Arvados requires at least Ruby 1.9.3."
-    echo "You may need to enter your password."
-    read -p "Press Ctrl-C to abort, or else press ENTER to install ruby1.9.3 and continue. " unused
-
-    sudo apt-get update
-    sudo apt-get -y install ruby1.9.3
+    echo "Building the Arvados docker containers requires at least Ruby 1.9.3."
+    echo "Please install ruby 1.9.3 or higher before executing this script."
+    exit 1
 fi
 
 function usage {