summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuildfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/buildfile b/buildfile
index aba1005..d72b39c 100755
--- a/buildfile
+++ b/buildfile
@@ -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}'