Skip to content

Commit

Permalink
fix: rstudio redirect links use focal now (#669)
Browse files Browse the repository at this point in the history
See <https://dailies.rstudio.com/links/>

It seems that the links includes "bionic" is now disabled.
  • Loading branch information
eitsupi committed Jun 20, 2023
1 parent ef593dc commit a00b24f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/install_rstudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ if [ "$UBUNTU_CODENAME" = "focal" ]; then
fi

if [ "$RSTUDIO_VERSION" = "stable" ] || [ "$RSTUDIO_VERSION" = "preview" ] || [ "$RSTUDIO_VERSION" = "daily" ]; then
if [ "$UBUNTU_CODENAME" = "bionic" ]; then
UBUNTU_CODENAME="focal"
fi
wget "https://rstudio.org/download/latest/${RSTUDIO_VERSION}/server/${UBUNTU_CODENAME}/rstudio-server-latest-${ARCH}.deb" -O "$DOWNLOAD_FILE"
else
wget "https://download2.rstudio.org/server/${UBUNTU_CODENAME}/${ARCH}/rstudio-server-${RSTUDIO_VERSION/"+"/"-"}-${ARCH}.deb" -O "$DOWNLOAD_FILE" ||
Expand Down

0 comments on commit a00b24f

Please sign in to comment.