Project

General

Profile

« Previous | Next » 

Revision b357f0a6

Added by Jim Pingle over 13 years ago

Include admin user in bootup account sync

View differences:

etc/inc/auth.inc
287 287
	if ($fd) {
288 288
		while (!feof($fd)) {
289 289
			$line = explode(":",fgets($fd));
290
			if (!strncmp($line[0], "_", 1))
291
				continue;
292
			if ($line[2] < 2000)
293
				continue;
294
			if ($line[2] > 65000)
290
			if (((!strncmp($line[0], "_", 1)) || ($line[2] < 2000) || ($line[2] > 65000)) && ($line[0] != "admin"))
295 291
				continue;
296
			$cmd = "/usr/sbin/pw userdel {$line[2]}";
292
			$cmd = "/usr/sbin/pw userdel -n '{$line[0]}'";
297 293
			if($debug)
298 294
				log_error("Running: {$cmd}");
299 295
			mwexec($cmd);

Also available in: Unified diff