github.com/miguelangel-nubla/oauth2commander@v0.3.7/entrypoint.sh (about)

     1  #!/bin/sh
     2  set -e
     3  
     4  # Run user's initialization script if present
     5  if [ -f "$INIT_SCRIPT_PATH" ]; then
     6      echo "[entrypoint.sh] Running initialization script..."
     7      "$INIT_SCRIPT_PATH"
     8  fi
     9  
    10  # Check for user-provided certificates and add them
    11  if [ -d "$TRUSTED_CA_PATH" ]; then
    12      echo "[entrypoint.sh] Adding user-provided certificates..."
    13      for cert in $TRUSTED_CA_PATH/*; do
    14          cp "$cert" /usr/local/share/ca-certificates/
    15      done
    16      update-ca-certificates
    17  fi
    18  
    19  # Run the main application (or any command passed to the container)
    20  echo "[entrypoint.sh] Starting the application..."
    21  exec "$@"