RVM system-wide install script url broken — what is replacement?

前端 未结 2 809
Happy的楠姐
Happy的楠姐 2021-01-02 20:36

My RVM system-wide installation scripts are broken, both in the form of Linode StackScripts and Chef-solo Recipes.

Per the instructions on the RVM website, my script

相关标签:
2条回答
  • 2021-01-02 21:17

    Here is my fix to install the last working version before he major change:

    bash <( curl -L https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide ) --version '1.3.0'
    

    This is working for me now in production. Good luck!

    UPDATE

    Also, if you are using the chef cookbook from https://github.com/fnichol/chef-rvm or something similar, you can use the following options:

    :rvm => {
      :system_installer_url => "https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide",
      :version => "1.3.0"
    }
    
    0 讨论(0)
  • 2021-01-02 21:24

    Just received the following answer from the lead developer, wayneeseguin, on #rvm:

    [12:53] "the author" merged it into the ain installer [12:53] so you should be doing bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) # http://rvm.beginrescueend.com/rvm/install/
    [12:53] the code has just changed and the documentation hasn't caught up [12:53] for both root and user installs

    It is true that RVM 1.5.1 will successfully install into /usr/local/bin just by installing as root. However, for some reason, all the existing Chef and Puppet provisioning scripts that are in use today do not appear to survive this version bump. This is unfortunate, as Wayne E. Seguin has made clear that RVM below version 1.5.0 will not be supported.

    That said, we need our systems to work today. In order to continue to use RVM 1.3.0, which the existing scripts support, you need to replace the following line:

    bash < <( curl -L http://bit.ly/rvm-install-system-wide )
    

    With the following line (found by phlipper):

    bash -c "bash <( curl -L https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide ) --version '1.3.0'"
    
    0 讨论(0)
提交回复
热议问题