Files

7 lines
356 B
Bash
Raw Permalink Normal View History

#!/bin/sh
# The Fly volume mounts root-owned at /data: make our dirs, hand them to the app user, drop root.
set -e
for d in "${PHAST_DATA_DIR:-/data/phast}" "${FASTMCP_HOME:-/data/fastmcp}"; do
mkdir -p "$d" && chown -R 10001:10001 "$d" && chmod 700 "$d"
done
exec env HOME=/home/phast setpriv --reuid=10001 --regid=10001 --clear-groups python server.py