RVM系统范围的安装脚本url坏了 – 什么是替换?

我的RVM系统范围的安装脚本都以Linode StackScripts和Chef-solo Recipes的forms被破坏了。

根据RVM网站上的说明,我的脚本以root身份执行以下命令,以在系统范围内安装RVM:

echo "Installing RVM system-wide" >> $logfile bash < > /etc/profile <<'EOF' # Load RVM if it is installed, # first try to load user install # then try to load root install, if user install is not there. if [ -s "$HOME/.rvm/scripts/rvm" ] ; then . "$HOME/.rvm/scripts/rvm" elif [ -s "/usr/local/rvm/scripts/rvm" ] ; then . "/usr/local/rvm/scripts/rvm" fi EOF source /etc/profile 

上面的关键部分是urlhttp://bit.ly/rvm-install-system-wide 。 截至今日,2011年3月24日,此url已停止使用。 它导致GitHub 404错误。

RVM网站上的以下URL用于包含系统范围安装的说明: http//rvm.beginrescueend.com/deployment/system-wide/ 。 但是,该URL现在重定向到RVM主页。

为了使RVM系统范围的安装脚本再次运行,有哪些新指令?

这是我在重大更改之前安装最后一个工作版本的修复程序:

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

这对我现在的生产有用。 祝好运!

UPDATE

此外,如果您使用https://github.com/fnichol/chef-rvm或类似的厨师食谱,您可以使用以下选项:

 :rvm => { :system_installer_url => "https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide", :version => "1.3.0" } 

刚从#rvm的首席开发人员wayneeseguin收到以下答案:

[12:53]“作者”将它合并到ain安装程序[12:53]所以你应该做bash <<(curl http://rvm.beginrescueend.com/releases/rvm-install-head)#http ://rvm.beginrescueend.com/rvm/install/
[12:53]代码刚刚更改,文档没有赶上[12:53]的root用户和用户安装

确实,只需通过root身份安装,RVM 1.5.1就能成功安装到/ usr / local / bin中。 但是,出于某种原因,现在使用的所有现有Chef和Puppet配置脚本似乎都无法在此版本中出现。 这是不幸的,因为Wayne E. Seguin明确表示不支持低于1.5.0版的RVM。

也就是说,我们今天需要我们的系统。 为了继续使用现有脚本支持的RVM 1.3.0,您需要替换以下行:

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

使用以下行(由phlipper找到):

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