#!/bin/sh
set -eu
# Run once as the VPS administrator; shared hosting requires provider assistance.
[ "$(id -u)" -eq 0 ] || { echo 'Run package setup as the server administrator.'; exit 1; }
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends tesseract-ocr tesseract-ocr-eng poppler-utils python3 python3-pil bubblewrap fonts-dejavu-core
printf '%s
' 'Run php artisan zentrik:ocr:check as the application account. OCR remains disabled until Super Admin enables a tenant.'
