| 1 | #!/bin/sh |
| 2 | set -eu |
| 3 | |
| 4 | if [ -n "$MAILER_ADDRESS" ]; then |
| 5 | mailer_username=$(node -e 'process.stdout.write(encodeURIComponent(process.argv[1]))' "$MAILER_USERNAME") |
| 6 | mailer_password=$(node -e 'process.stdout.write(encodeURIComponent(process.argv[1]))' "$MAILER_PASSWORD") |
| 7 | export PDS_EMAIL_SMTP_URL="smtps://${mailer_username}:${mailer_password}@${MAILER_ADDRESS}:465/" |
| 8 | export PDS_EMAIL_FROM_ADDRESS="noreply@${HOME_DOMAIN}" |
| 9 | fi |
| 10 | |
| 11 | exec dumb-init -- node --enable-source-maps index.ts |