]> granicus.if.org Git - icinga2/commitdiff
Fix the setup script.
authorGunnar Beutner <gunnar.beutner@netways.de>
Sun, 13 Apr 2014 01:06:22 +0000 (03:06 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sun, 13 Apr 2014 01:07:37 +0000 (03:07 +0200)
Refs #4865

pki/icinga2-setup-agent.cmake

index b92a04ef4c4d51f0a5c14d6f5f9185401b335b88..ff9b04b8c12e4b7a9d739bc2b8e6a9c84596ff95 100644 (file)
@@ -128,7 +128,7 @@ if [ -n "$1" ]; then
        fi
 
        echo "Installing the certificate bundle..."
-       tar -C $ICINGA2CONFIG/pki/agent/ -zxf "$1" || exit 1
+       base64 -d < $1 | tar -C $ICINGA2CONFIG/pki/agent/ -zx || exit 1
        chown @ICINGA2_USER@:@ICINGA2_GROUP@ $ICINGA2CONFIG/pki/agent/* || exit 1
 
        echo "Setting up agent configuration..."