Project

General

Profile

Bug #11582 » 63.diff

Viktor Gurov, 03/02/2021 05:04 AM

View differences:

usr/local/pkg/freeradius.inc
2567 2567

  
2568 2568
	/* XML will hold the sections to sync. */
2569 2569
	$xml = array();
2570
	$xml['freeradius'] = $config['installedpackages']['freeradius'];
2571
	$xml['freeradiusauthorizedmacs'] = $config['installedpackages']['freeradiusauthorizedmacs'];
2572
	$xml['freeradiusclients'] = $config['installedpackages']['freeradiusclients'];
2570

  
2571
	$syncsections = array('freeradius', 'freeradiusauthorizedmacs', 'freeradiusclients', 'freeradiusinterfaces',
2572
	'freeradiussettings', 'freeradiuseapconf', 'freeradiussqlconf', 'freeradiusmodulesldap');
2573
	foreach ($syncsections as $section) {
2574
		if (is_array($config['installedpackages'][$section])) {
2575
			$xml[$section] = $config['installedpackages'][$section];
2576
		}
2577
	}
2573 2578

  
2574 2579
	$execcmd  = "require_once('/usr/local/pkg/freeradius.inc');\n";
2575 2580
	$execcmd .= "freeradius_all_after_XMLRPC_resync();";
(1-1/2)