Project

General

Profile

« Previous | Next » 

Revision 6ba16cde

Added by Jim Pingle over 2 years ago

Correct DHCP lease reg enabled test. Fixes #13782

View differences:

src/etc/inc/system.inc
601 601
	$pidfile = "{$g['varrun_path']}/dhcpleases.pid";
602 602

  
603 603
	/* Start the monitoring process for dynamic dhcpclients. */
604
	if (((config_path_enabled('dnsmasq') && (config_get_path('dnsmasq/regdhcp') != null)) ||
605
	    (config_path_enabled('unbound') && (config_get_path('unbound/regdhcp') != null))) &&
604
	if (((config_path_enabled('dnsmasq') && (config_get_path('dnsmasq/regdhcp') !== null)) ||
605
	    (config_path_enabled('unbound') && (config_get_path('unbound/regdhcp') !== null))) &&
606 606
	    (is_dhcp_server_enabled())) {
607 607
		/* Make sure we do not error out */
608 608
		mwexec("/bin/mkdir -p {$g['dhcpd_chroot_path']}/var/db");

Also available in: Unified diff