summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-14 09:14:33 -0400
committerjim-p <jimp@pfsense.org>2010-07-14 09:14:33 -0400
commitf3e0a111e9af72c16b6391035b716bb067d418ed (patch)
treed43db570dea1e4b3c8da25602a0986a880e08185
parentf301a34cfba7ec6d231fb6ef2476784facc17218 (diff)
downloadpfsense-f3e0a111e9af72c16b6391035b716bb067d418ed.zip
pfsense-f3e0a111e9af72c16b6391035b716bb067d418ed.tar.gz
Flip this back the other way, the group operation will fail if the user isn't set yet.
-rw-r--r--etc/inc/auth.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 2435ba6..4b5578b 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -255,16 +255,16 @@ function local_sync_accounts() {
$allgrp = getGroupEntryByGID(1998);
local_group_set($allgrp, true);
- /* sync all local groups */
- if (is_array($config['system']['group']))
- foreach ($config['system']['group'] as $group)
- local_group_set($group);
-
/* sync all local users */
if (is_array($config['system']['user']))
foreach ($config['system']['user'] as $user)
local_user_set($user);
+ /* sync all local groups */
+ if (is_array($config['system']['group']))
+ foreach ($config['system']['group'] as $group)
+ local_group_set($group);
+
conf_mount_ro();
}
OpenPOWER on IntegriCloud