#!/bin/sh
set -e
mkdir -p /data
chmod 1777 /data
# Fix perms on existing content so host user can read/write
chmod -R a+rwX /data 2>/dev/null || true
# New files/dirs world-readable/writable so host user can manage them
umask 0000
exec python -u app.py
