On Wed, Dec 12, 2012 at 12:48:34 +0100, Holger Levsen wrote: > debian-edu-config (1.702) unstable; urgency=low > > [ Mike Gabriel ] > * In gosa-create script: Invalidate libnss cache before applying chown > on new home directories. Fixes multiple failures during mass user > import into GOsa². One question here: > --- debian-edu-config-1.701/share/debian-edu-config/tools/gosa-create 2012-06-10 12:29:24.000000000 +0000 > +++ debian-edu-config-1.702/share/debian-edu-config/tools/gosa-create 2012-12-02 08:29:26.000000000 +0000 > @@ -32,6 +32,10 @@ > echo "$HOMEDIR" | grep -q "^$PREFIX/$HOSTNAME" || continue > test -e "$HOMEDIR" && continue > cp -r /etc/skel $HOMEDIR > + if type nscd > /dev/null 2>&1 ; then > + nscd -i passwd > + nscd -i group > + fi > chown -R $USERID:$GROUPID $HOMEDIR > kadmin.local -q "add_principal -policy users -randkey -x $USERDN $USERID" > logger -t gosa-create -p notice Home directory \'$HOMEDIR\' and principal \'$USERID\' created. Is there any guarantee /bin/sh has a 'type' built-in utility? I guess it will in most cases, and if it doesn't you just don't run nscd so it should be fine… Cheers, Julien
Attachment:
signature.asc
Description: Digital signature