#!/bin/bash

for file in /docker-entrypoint.d/*; do
  if [ -x "$file" ]; then
    echo "Running $file"
    "$file"
  else
    echo "Sourcing $file"
    . "$file"
  fi
done