#!/usr/bin/env sh

mkdir -p /var/log/hdalab/celery
mkdir -p /var/log/hdalab/uwsgi
mkdir -p /var/lib/hdalab/celery
mkdir -p /var/lib/hdalab/static/media/thumbnails/renkan
mkdir -p /var/lib/hdalab/static/site
cp /etc/hdalab/renkan_default_icon.png /var/lib/hdalab/static/media/thumbnails/renkan/
chown -R www:www /var/log/hdalab
chown -R www:www /var/lib/hdalab

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


