Skip to content

Commit

Permalink
Update install-rocker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Feb 18, 2025
1 parent 2747346 commit da7dcb5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/install-rocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ if command -v tlmgr &> /dev/null; then
fi

# Set the terminal in RStudio to have the clean PATH wo conda so don't use .bashrc which is for JLab
echo 'export PATH="$PATH"' > /home/jovyan/.rstudio-bashrc && \
chown jovyan:jovyan /home/jovyan/.rstudio-bashrc
if test -f /etc/rstudio/rserver.conf; then
echo "env.BASH_ENV=/home/jovyan/.rstudio-bashrc" >> /etc/rstudio/rserver.conf
fi
#if test -f /etc/rstudio/rserver.profile; then
# echo 'export PATH="$PATH"' > /home/jovyan/.rstudio-bashrc
# chown jovyan:jovyan /home/jovyan/.rstudio-bashrc
# echo "BASH_ENV=/home/jovyan/.rstudio-bashrc" >> /etc/rstudio/rserver-profile
#fi

sudo chown -R jovyan:jovyan /etc/rstudio
sudo chmod -R u+rwX /etc/rstudio

0 comments on commit da7dcb5

Please sign in to comment.