From: <bo...@us...> - 2004-07-22 05:49:24
|
Update of /cvsroot/ceps/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10644 Modified Files: Tag: r3-14 upduser.sh Log Message: changed user-directory dist location to @depotdir@/users-dist/ Index: upduser.sh =================================================================== RCS file: /cvsroot/ceps/scripts/upduser.sh,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** upduser.sh 2 Oct 2003 02:43:57 -0000 1.8 --- upduser.sh 22 Jul 2004 05:49:16 -0000 1.8.2.1 *************** *** 3,6 **** --- 3,9 ---- # # $Log$ + # Revision 1.8.2.1 2004/07/22 05:49:16 bozzio + # changed user-directory dist location to @depotdir@/users-dist/ + # # Revision 1.8 2003/10/02 02:43:57 damo # Changed all instances of faramir to beorn *************** *** 162,166 **** Local home directories ! =item B</usr/local/root-dist/users/*> Distributed home directories --- 165,169 ---- Local home directories ! =item B<@depotdir@/users-dist/> Distributed home directories *************** *** 182,186 **** $ALIASES= "/etc/aliases"; $SDDB= "@bindir@/sddb"; ! $ROOTDIST= "/usr/local/root-dist"; sub usage { --- 185,189 ---- $ALIASES= "/etc/aliases"; $SDDB= "@bindir@/sddb"; ! $USERSDIST= "@depotdir@/users-dist"; sub usage { *************** *** 439,446 **** } ! if (-d "$ROOTDIST/users" ) { ! if (! -e "$ROOTDIST/users/$username" ) { ! !system("cp -rp $ROOTDIST/users/stdhome/. $ROOTDIST/users/$username") || die "Cannot copy stdhome to $ROOTDIST/users/$username: $!\n"; ! !system("chown -R $uid:$gid $ROOTDIST/users/$username") || die "Cannot chown $ROOTDIST/users/$username to $username: $!\n"; } } --- 442,449 ---- } ! if (-d "$USERSDIST" ) { ! if (! -e "$USERSDIST/$username" ) { ! !system("cp -rp $USERSDIST/stdhome/. $USERSDIST/$username") || die "Cannot copy stdhome to $USERSDIST/$username: $!\n"; ! !system("chown -R $uid:$gid $USERSDIST/$username") || die "Cannot chown $USERSDIST/$username to $username: $!\n"; } } |