#!/bin/sh
# Blog AI owner console. Installed root-owned; not a public web endpoint.
set -eu
if [ "$(id -u)" -ne 0 ]; then
  exec /usr/bin/sudo -- /usr/bin/python3 -I -X utf8 /opt/blog-ai/current/bin/ai-control.py "$@"
fi
exec /usr/bin/python3 -I -X utf8 /opt/blog-ai/current/bin/ai-control.py "$@"
