#!/usr/bin/env bash set -euo pipefail source "$(dirname "${BASH_SOURCE[0]}")/host-guard.sh" akyldash_is_production_host avprogs.hlab.kz 127.0.0.1 akyldash_is_production_host other.example $'10.0.0.2\n206.223.249.118' if akyldash_is_production_host recovery.example 10.0.0.2; then echo 'FAIL unrelated recovery host identified as production' >&2 exit 1 fi echo 'PASS recovery host identity guard'