#!/bin/bash
# Copy the mounted keyfile and set required permissions
mkdir -p /etc/mongodb
cp /tmp/mongo-keyfile /etc/mongodb/keyfile
chmod 400 /etc/mongodb/keyfile
chown mongodb:mongodb /etc/mongodb/keyfile
exec docker-entrypoint.sh "$@"
