#!/bin/sh set -e # Runs as root (the image does not set USER), so it can fix ownership of the # data volume, then drops privileges to the non-root pubscript user before # exec'ing the server. This lets SQLite write to the mounted data dir. mkdir -p /app/data chown -R pubscript:pubscript /app/data exec su-exec pubscript "$@"