in clustered systems, so that the cluster-sync remains possible with
the new certificate.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
if ($type eq 'api') {
print "Restarting pmgproxy\n";
PVE::Tools::run_command(['systemctl', 'reload-or-restart', 'pmgproxy']);
+
+ my $cinfo = PMG::ClusterConfig->new();
+ if (scalar(keys %{$cinfo->{ids}})) {
+ print "Notify cluster about new fingerprint\n";
+ PMG::Cluster::trigger_update_fingerprints($cinfo);
+ }
}
};