diff options
-rwxr-xr-x | buildfile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -14,6 +14,12 @@ if [ -z "$1" -o -z "$2" ]; then exit 1 fi +# check hostname +if ! grep -q "<Client profile=\"[^\"]*\" name=\"$2\"" $REPO/Metadata/clients.xml; then + echo "Host '$2' not found." + exit 1 +fi + bcfg2-info -Q "$REPO" buildfile "$@" | \ if [ "$verbose" = "1" ]; then awk '/<Path/,/<\/Path>/{print}' |