generated from gCubeCI/Pipeline-Docker-Template
Do not fail if the target directory is not present.
This commit is contained in:
parent
7ed4e181c2
commit
b2ce248d1b
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [ -d "/var/run/s6/container_environment" ] ; then
|
||||
## Set our dynamic variables in Renviron.site to be reflected by RStudio Server or Shiny Server
|
||||
exclude_vars="HOME PASSWORD RSTUDIO_VERSION BATCH_USER_CREATION"
|
||||
for file in /var/run/s6/container_environment/*
|
||||
|
@ -12,3 +13,4 @@ done
|
|||
|
||||
## only file-owner (root) should read container_environment files:
|
||||
chmod 600 /var/run/s6/container_environment/*
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue