#!/bin/sh
# Runs the certmanager/sshsignhost helper matching the name it is invoked as.
# The openvoxserver image has no python, so the EL9 tree staged on the shared
# bins volume is started through its own dynamic loader.
set -eu

PYROOT=/opt/bin/certhelpers/py-el9-1

exec "${PYROOT}/lib64/ld-linux-x86-64.so.2" \
  --library-path "${PYROOT}/lib64:${PYROOT}/usr/lib64" \
  "${PYROOT}/usr/bin/python3.9" "/opt/bin/certhelpers/${0##*/}" "$@"
