#!/usr/bin/env bash
set -euo pipefail

exec runuser -u cangku-bootstrap -- /bin/bash -c '
  set -a
  . /etc/cangku-bootstrap/service.env
  set +a
  exec /opt/cangku-bootstrap/venv/bin/python /opt/cangku-bootstrap/app/bootstrap_service.py "$@"
' cangku-bootstrapctl "$@"
