#!/bin/sh

APP_DIR="/usr/lib/paranoya"

if [ ! -f "${APP_DIR}/client.py" ]; then
    echo "Error: Paranoya client is not installed." >&2
    exit 1
fi

cd "${APP_DIR}" || exit 1

exec /usr/bin/python3 \
    "${APP_DIR}/client.py" \
    "$@"
