diff options
| author | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2023-11-23 12:11:38 +0100 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2023-11-23 12:11:41 +0100 |
| commit | 0558f26d2ea3a7a4caf6d4ea3bb48df00361cb11 (patch) | |
| tree | adb14caa224d5395d81c2bea4e4fb7cc2e561cee | |
| parent | faa17e045f304c613b19c623c6323509c5ceb398 (diff) | |
dhcp dnsmasq: suppress warning too if dhcp is not configured
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
| -rw-r--r-- | src/PVE/Network/SDN/Dhcp/Dnsmasq.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm index 6dd9d9e..e65e973 100644 --- a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm +++ b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm @@ -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; |
