entrypoint.sh 150 B

123456789101112
  1. #!/bin/bash
  2. set -e
  3. if [ "${1:0:1}" = '-' ]; then
  4. set -- influxd "$@"
  5. fi
  6. if [ "$1" = 'influxd' ]; then
  7. /init-influxdb.sh "${@:2}"
  8. fi
  9. exec "$@"