Skip to content

Commit

Permalink
fix download command
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Aug 10, 2023
1 parent 4e441bb commit 392cd77
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/rstudio-server/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,8 @@ install_rstudio() {
curl -sLo "${deb_file}" "${install_url}" ||
echo "(!) Version ${version} for ${UBUNTU_CODENAME} ${architecture} is not found"
else
install_url="https://download2.rstudio.org/server/${UBUNTU_CODENAME}/${architecture}/rstudio-server-${RS_VERSION/"+"/"-"}-${architecture}.deb" &&
echo "Download from ${install_url}" &&
curl -sLo "${deb_file}" "${install_url}" ||
install_url="https://s3.amazonaws.com/rstudio-ide-build/server/${UBUNTU_CODENAME}/${architecture}/rstudio-server-${RS_VERSION/"+"/"-"}-${architecture}.deb" &&
echo "Download failed, try from ${install_url}" &&
curl -sLo "${deb_file}" "${install_url}" ||
curl -sLo "${deb_file}" "https://download2.rstudio.org/server/${UBUNTU_CODENAME}/${architecture}/rstudio-server-${RS_VERSION/"+"/"-"}-${architecture}.deb" ||
curl -sLo "${deb_file}" "https://s3.amazonaws.com/rstudio-ide-build/server/${UBUNTU_CODENAME}/${architecture}/rstudio-server-${RS_VERSION/"+"/"-"}-${architecture}.deb" ||
echo "(!) Version ${RS_VERSION} for ${UBUNTU_CODENAME} ${architecture} is not found"
fi

Expand Down

0 comments on commit 392cd77

Please sign in to comment.