#!/usr/bin/env bash set -euo pipefail if [[ $EUID -ne 0 || $# -ne 0 ]]; then echo "The restricted release dispatcher accepts only its exact SSH command." >&2 exit 1 fi case "${SSH_ORIGINAL_COMMAND:-}" in /usr/local/sbin/akyldash-release-status) exec /usr/local/sbin/akyldash-release-deploy status ;; /usr/local/sbin/akyldash-release-deploy) exec /usr/local/sbin/akyldash-release-deploy ;; *) echo "The restricted release dispatcher accepts only status or deploy." >&2 exit 126 ;; esac