entrypoint.sh 389 B

12345678910111213
  1. #!/bin/sh
  2. # Check if the secret file exists at /run/secrets/pixivfe_token
  3. if [ -f /run/secrets/pixivfe_token ]; then
  4. export PIXIVFE_TOKEN=$(cat /run/secrets/pixivfe_token)
  5. echo "Info: PIXIVFE_TOKEN loaded from secret."
  6. else
  7. echo "Info: PIXIVFE_TOKEN not loaded from secret. Loading the environment variable normally."
  8. fi
  9. # Execute the main application
  10. exec /app/pixivfe "$@"