about summary refs log tree commit diff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorDavid Sterry <davesterry@gmail.com>2021-10-14 11:59:41 -0700
committerGitHub <noreply@github.com>2021-10-14 20:59:41 +0200
commita7e2e32d92ca1c46296a09f57d834e36307acce6 (patch)
tree491f89ab734b23189222299184eb2a8c0e208bf8 /Vagrantfile
parentebaf9b68b518e3131f46ca3a976a609800ceff60 (diff)
replace keys.gnupg.net with curl from rvm.io (#16568)
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile12
1 files changed, 2 insertions, 10 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 82d41f7d5..e086ddd98 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -45,16 +45,8 @@ sudo apt-get install \
 # Install rvm
 read RUBY_VERSION < .ruby-version
 
-gpg_command="gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB"
-$($gpg_command)
-if [ $? -ne 0 ];then
-  echo "GPG command failed, This prevented RVM from installing."
-  echo "Retrying once..." && $($gpg_command)
-  if [ $? -ne 0 ];then
-    echo "GPG failed for the second time, please ensure network connectivity."
-    echo "Exiting..." && exit 1
-  fi
-fi
+curl -sSL https://rvm.io/mpapis.asc | gpg --import
+curl -sSL https://rvm.io/pkuczynski.asc | gpg --import
 
 curl -sSL https://raw.githubusercontent.com/rvm/rvm/stable/binscripts/rvm-installer | bash -s stable --ruby=$RUBY_VERSION
 source /home/vagrant/.rvm/scripts/rvm