]> git.proxmox.com Git - pmg-api.git/commitdiff
api: certs: drop unused variable
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Mar 2021 16:02:02 +0000 (17:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Mar 2021 16:02:35 +0000 (17:02 +0100)
commit 1ecf138e1729dee908431673b73ac5baf8fd35a9 forgot to remove the
variable it changes made useless

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/API2/Certificates.pm

index 1a7ded68294ebba3508ceec22f4a28a15100e7d1..c08deb6518ef8d191d984bd8f9d8b77f593663ee 100644 (file)
@@ -69,11 +69,12 @@ my sub set_smtp : prototype($$) {
 
     my $code = sub {
        my $cfg = PMG::Config->new();
+       # check if value actually would change
        if (!$cfg->get('mail', 'tls') != !$on) {
            print "Rewriting postfix config\n";
            $cfg->set('mail', 'tls', $on);
            $cfg->write();
-           my $changed = $cfg->rewrite_config_postfix();
+           $cfg->rewrite_config_postfix();
        }
 
        if ($reload) {