#!/usr/bin/env sh
set -e

# Ensure the runtime store directory exists and is writable.
mkdir -p /var/www/html/database/runtime
chown -R www-data:www-data /var/www/html/database/runtime

exec /usr/bin/supervisord -c /etc/supervisord.conf
