]> git.proxmox.com Git - pve-network.git/commitdiff
dhcp dnsmasq: suppress warning too if dhcp is not configured
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Nov 2023 11:11:38 +0000 (12:11 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Nov 2023 11:11:41 +0000 (12:11 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network/SDN/Dhcp/Dnsmasq.pm

index 6dd9d9e549cdaf013fa9d418cf28630c14d2b7f6..e65e97357db9a4ec72c8bf164dce8d2326c8973f 100644 (file)
@@ -26,8 +26,8 @@ my sub assert_dnsmasq_installed {
 
     my $bin_path = "/usr/sbin/dnsmasq";
     if (!-e $bin_path) {
-       log_warn("please install the 'dnsmasq' package in order to use the DHCP feature!");
        return if $noerr; # just ignore, e.g., in case zone doesn't use DHCP at all
+       log_warn("please install the 'dnsmasq' package in order to use the DHCP feature!");
        die "cannot reload with missing 'dnsmasq' package\n";
     }
     return 1;