]> granicus.if.org Git - icinga2/commitdiff
Remove some more redundant code from "node wizard"
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 13 Nov 2014 14:32:41 +0000 (15:32 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 13 Nov 2014 14:32:41 +0000 (15:32 +0100)
refs #7656

lib/cli/nodewizardcommand.cpp

index ab75e5affd87495d015aba654e57d114005c9a07..ab5ea64fa3927a852418507eab09d7d1a5847f9b 100644 (file)
@@ -247,33 +247,7 @@ wizard_master_host:
                        return 1;
                }
 
-               /* store ca in /etc/icinga2/pki */
-               String ca_path = PkiUtility::GetLocalCaPath();
-               String ca_key = ca_path + "/ca.key";
-               String ca = ca_path + "/ca.crt";
-               String serial = ca_path + "/serial.txt";
-
                /* fix permissions: root -> icinga daemon user */
-               if (!Utility::SetFileOwnership(ca_path, user, group)) {
-                       Log(LogWarning, "cli")
-                           << "Cannot set ownership for user '" << user << "' group '" << group << "' on file '" << ca_path << "'. Verify it yourself!";
-               }
-               if (!Utility::SetFileOwnership(ca, user, group)) {
-                       Log(LogWarning, "cli")
-                           << "Cannot set ownership for user '" << user << "' group '" << group << "' on file '" << ca << "'. Verify it yourself!";
-               }
-               if (!Utility::SetFileOwnership(ca_key, user, group)) {
-                       Log(LogWarning, "cli")
-                           << "Cannot set ownership for user '" << user << "' group '" << group << "' on file '" << ca_key << "'. Verify it yourself!";
-               }
-               if (!Utility::SetFileOwnership(serial, user, group)) {
-                       Log(LogWarning, "cli")
-                           << "Cannot set ownership for user '" << user << "' group '" << group << "' on file '" << serial << "'. Verify it yourself!";
-               }
-               if (!Utility::SetFileOwnership(node_cert, user, group)) {
-                       Log(LogWarning, "cli")
-                           << "Cannot set ownership for user '" << user << "' group '" << group << "' on file '" << node_cert << "'. Verify it yourself!";
-               }
                if (!Utility::SetFileOwnership(node_key, user, group)) {
                        Log(LogWarning, "cli")
                            << "Cannot set ownership for user '" << user << "' group '" << group << "' on file '" << node_key << "'. Verify it yourself!";