From: Gunnar Beutner Date: Sun, 13 Apr 2014 10:44:18 +0000 (+0200) Subject: Validate agent bundle files. X-Git-Tag: v0.0.10~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be213ab7c526cb6a6809b8dc3516363d6589d48e;p=icinga2 Validate agent bundle files. Refs #6002 --- diff --git a/pki/icinga2-setup-agent.cmake b/pki/icinga2-setup-agent.cmake index ff9b04b8c..ed4aa2876 100644 --- a/pki/icinga2-setup-agent.cmake +++ b/pki/icinga2-setup-agent.cmake @@ -14,6 +14,11 @@ if [ -n "$1" ]; then exit 1 fi + if ! base64 -d $1 2>/dev/null; then + echo "The bundle file is invalid or corrupted." + exit 1 + fi + while true; do echo -n "Are you setting up a new master instance? [n] " if ! read master; then