Skip to content

Commit

Permalink
Update prestart.bash
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-s authored May 10, 2024
1 parent 8c587ad commit 18a6126
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion charts/rstudio-connect/prestart.bash
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ main() {
/usr/local/share/ca-certificates/Kubernetes/cert-Kubernetes.crt 2>&1 | _indent

_logf 'Updating CA certificates'
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
DIST=$(cat /etc/os-release | grep "^ID=" -E -m 1 | cut -c 4-10 | sed 's/"//g')
if [[ $DIST == "ubuntu" ]]; then
update-ca-certificates 2>&1 | _indent
elif [[ $DIST == "rhel" || $DIST == "almalinux" ]]; then
update-ca-trust 2>&1 | _indent
fi

_logf 'Replacing process with %s' "${startup_script}"
exec "${startup_script}"
Expand Down

0 comments on commit 18a6126

Please sign in to comment.