Commit d41e78bb authored by Philippe Grosjean's avatar Philippe Grosjean
Browse files

Update post-init.sh

parent bbe70a60
Pipeline #246518 passed with stage
in 26 minutes and 26 seconds
...@@ -39,26 +39,26 @@ chown rstudio:rstudio /home/rstudio/.config/renkudir ...@@ -39,26 +39,26 @@ chown rstudio:rstudio /home/rstudio/.config/renkudir
cp /home/rstudio/${CI_PROJECT}/.config/credentials /home/rstudio/${CI_PROJECT}/.git/ cp /home/rstudio/${CI_PROJECT}/.config/credentials /home/rstudio/${CI_PROJECT}/.git/
# If there is a custom RStudio prefs, install it # If there is a custom RStudio prefs, install it
if [[ -f /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json ]]; then #if [[ -f /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json ]]; then
cp /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json /home/rstudio/.config/rstudio/rstudio-prefs.json #cp /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json /home/rstudio/.config/rstudio/rstudio-prefs.json
chown rstudio:rstudio /home/rstudio/.config/rstudio/rstudio-prefs.json #chown rstudio:rstudio /home/rstudio/.config/rstudio/rstudio-prefs.json
fi #fi
# Install latest r.snippets # Install latest r.snippets
if [[ -f /home/rstudio/${CI_PROJECT}/.config/snippets/r.snippets ]]; then #if [[ -f /home/rstudio/${CI_PROJECT}/.config/snippets/r.snippets ]]; then
mkdir -p /home/rstudio/.config/rstudio/snippets #mkdir -p /home/rstudio/.config/rstudio/snippets
cp /home/rstudio/${CI_PROJECT}/.config/snippets/r.snippets /home/rstudio/.config/rstudio/snippets/r.snippets #cp /home/rstudio/${CI_PROJECT}/.config/snippets/r.snippets /home/rstudio/.config/rstudio/snippets/r.snippets
chown rstudio:rstudio /home/rstudio/.config/rstudio/snippets/r.snippets #chown rstudio:rstudio /home/rstudio/.config/rstudio/snippets/r.snippets
fi #fi
# If there is a custom RStudio prefs, install it # If there is a custom RStudio prefs, install it
if [[ -f /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json ]]; then #if [[ -f /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json ]]; then
cp /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json /home/rstudio/.config/rstudio/rstudio-prefs.json #cp /home/rstudio/${CI_PROJECT}/.config/rstudio-prefs-user.json /home/rstudio/.config/rstudio/rstudio-prefs.json
chown rstudio:rstudio /home/rstudio/.config/rstudio/rstudio-prefs.json #chown rstudio:rstudio /home/rstudio/.config/rstudio/rstudio-prefs.json
fi #fi
# Install a user-level .Rprofile file # Install a user-level .Rprofile file
if [[ -f /home/rstudio/${CI_PROJECT}/.config/.Rprofile ]]; then #if [[ -f /home/rstudio/${CI_PROJECT}/.config/.Rprofile ]]; then
cp /home/rstudio/${CI_PROJECT}/.config/.Rprofile /home/rstudio/.Rprofile #cp /home/rstudio/${CI_PROJECT}/.config/.Rprofile /home/rstudio/.Rprofile
chown rstudio:rstudio /home/rstudio/.Rprofile #chown rstudio:rstudio /home/rstudio/.Rprofile
fi #fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment