diff --git a/src/rstudio-server/install.sh b/src/rstudio-server/install.sh index f4be85e..cc9e46e 100755 --- a/src/rstudio-server/install.sh +++ b/src/rstudio-server/install.sh @@ -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