|
@@ -88,6 +88,7 @@ if (!$pid) {
|
|
|
if ( !defined $hdb ) { die "Cannot connect to mySQL server: $DBI::errstr\n"; }
|
|
if ( !defined $hdb ) { die "Cannot connect to mySQL server: $DBI::errstr\n"; }
|
|
|
$urgent_sync=get_option($hdb,50);
|
|
$urgent_sync=get_option($hdb,50);
|
|
|
if ($urgent_sync) {
|
|
if ($urgent_sync) {
|
|
|
|
|
+ run_sql($hdb,"UPDATE User_auth SET changed=0 WHERE ou_id=".$default_user_ou_id." OR ou_id=".$default_hotspot_ou_id);
|
|
|
my $changed = get_record_sql($hdb,"SELECT COUNT(*) as c_count from User_auth WHERE changed=1");
|
|
my $changed = get_record_sql($hdb,"SELECT COUNT(*) as c_count from User_auth WHERE changed=1");
|
|
|
if ($changed->{"c_count"}>0) {
|
|
if ($changed->{"c_count"}>0) {
|
|
|
log_info("Found changed records: ".$changed->{'c_count'});
|
|
log_info("Found changed records: ".$changed->{'c_count'});
|