#!/bin/sh
set -eu

mode="${1:-ui}"

case "$mode" in
    ui)
        exec frankenphp run --config /etc/Caddyfile
        ;;
    *)
        echo "Unknown mode: $mode" >&2
        echo "Usage: entrypoint.sh [ui]" >&2
        exit 1
        ;;
esac
