]> granicus.if.org Git - icinga2/commitdiff
Don't disable notifications on master instances.
authorGunnar Beutner <gunnar@beutner.name>
Sun, 13 Apr 2014 11:49:38 +0000 (13:49 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sun, 13 Apr 2014 11:49:38 +0000 (13:49 +0200)
Refs #6002

pki/icinga2-setup-agent.cmake

index 5d05da8c1e404e8eaabbc6466439b1effab9f7f8..501970f06b5cb61c2e7e022dd8d0ca73996d0a17 100644 (file)
@@ -183,8 +183,10 @@ AGENT
        echo "Enabling agent feature..."
        @CMAKE_INSTALL_FULL_SBINDIR@/icinga2-enable-feature agent
 
-       echo "Disabling notification feature..."
-       @CMAKE_INSTALL_FULL_SBINDIR@/icinga2-disable-feature notification
+       if [ "$master" = "n" ]; then
+               echo "Disabling notification feature..."
+               @CMAKE_INSTALL_FULL_SBINDIR@/icinga2-disable-feature notification
+       fi
 
        echo ""
        echo "The key bundle was installed successfully and the agent component"