-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 13/06/12 01:21 PM, Ian Stakenvicius wrote: > On 13/06/12 01:19 PM, Michał Górny wrote: >> On Wed, 13 Jun 2012 12:00:16 -0400 Ian Stakenvicius >> <a...@gentoo.org> wrote: > >>> + ### force updates of some user properties + >>> usermod -d "${ehome}" "${euser}" || die + usermod >>> -s "${eshell}" "${euser}" || die > >> I think usermod can handle multiple arguments. > > > It can, but I figured it would be easier to debug if something > failed, if each modification was on the same line. Easy to modify > it to be a one-liner, however (and iirc all but possibly dscl can > do this in a single call) > > >
As a follow-up to this, I believe it may be possible that my suggestion is incorrectly coded when considering cases where shell and home are not specified. IE, the updates should be called individually, and should only be called if their respective variable ($ehome, $eshell) is actually set. I will post an update after some testing. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iF4EAREIAAYFAk/Y37gACgkQ2ugaI38ACPB+RgD/a4qmpDYsTDCsgvsFmBSMnS9h CWID5XVVGTPduEcqKeQA/jvpFyDuEd4zh5pSe/fPinq7xLw5lufy+rXq8nxcRsJm =UofV -----END PGP SIGNATURE-----