#!/bin/bash
# Enable the shared Verae network printer. Safe to run from the driver package's
# optional component (owner driver) or the standalone package (owner standalone).
set -euo pipefail
OWNER="${VERAE_NETPRINT_OWNER:-standalone}"
BIN="/Library/Application Support/Verae/PrintStamp/bin/verae-print"
if [[ ! -x "$BIN" ]]; then
  echo "verae-print is not installed at $BIN" >&2
  exit 1
fi
exec "$BIN" netprint install --owner "$OWNER"
