Validate agent bundle files.

Refs #6002
This commit is contained in:
Gunnar Beutner 2014-04-13 12:44:18 +02:00
parent e92ef19340
commit be213ab7c5
1 changed files with 5 additions and 0 deletions

View File

@ -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