0

I'm installing RVM for Ruby with the following command: curl -L https://get.rvm.io | sudo su myuser -c "bash -s stable --rails"

I specifically need it to be installed under that user - and it will work, but it requires the user to intervene by pressing "q" to continue once it hits a certain point in the script. How can I set the script to just continue without having to press 'q' to continue?

TJ Biddle
  • 161
  • 1
  • 6

2 Answers2

3

The installer options --ruby and --rails are intended for humans only, and to allow guided installation.

RVM2 will allow better automation of this process but in RVM1 - you need to do it step by step.

Single user:

curl -L https://get.rvm.io | bash -s stable
apt-get install ... # the steps shown in `rvm requirements`
~/.rvm/bin/rvm install 1.9.3

Multi user:

# create "rvm" group and add users to it
curl -L https://get.rvm.io | sudo bash -s stable
sudo apt-get install ... # the steps shown in `rvm requirements`
/usr/local/rvm/bin/rvm install 1.9.3
mpapis
  • 334
  • 3
  • 9
  • Upvote for developer response: But we needed automation. When I got in this morning I was told we decided against virtual environments, just using system ruby now, everything works fine and dandy. – TJ Biddle Aug 01 '12 at 01:23
  • automation will come in RVM2 - fixing stuff or adding features to RVM1 only slows down work on RVM2 - sad but true. – mpapis Aug 01 '12 at 01:33
0

Expect homepage.

Seems to be the standard "how do I skip keyboard input" answer on SO and a lot of the Linux forums.

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
  • I'm confused - can I just wrap the entire command in expect or do I need to run this as an expect file with the shebang and all? It seems every time I try to wrap it I run into issues with it thinking I'm passing it a file. I'm setting this up in the postinst file in a debian package and I don't think I can change it from a bash to expect shebang. – TJ Biddle Jul 31 '12 at 04:08