/[smecontribs]/rpms/smeserver-lazy_admin_tools/contribs8/smeserver-lazy_admin_tools-1.1-patch1.patch
ViewVC logotype

Annotation of /rpms/smeserver-lazy_admin_tools/contribs8/smeserver-lazy_admin_tools-1.1-patch1.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jul 29 19:56:06 2014 UTC (10 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-lazy_admin_tools-1_1-3_el5_sme, smeserver-lazy_admin_tools-1_1-4_el5_sme, HEAD
* Tue Jul 29 2014 JP PIALASSE tests@pialasse.com  1.1.-3.sme
- fix lat-users delete too long due to groups [SME: 8503]

1 unnilennium 1.1 diff -up smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users.patch1 smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users
2     --- smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users.patch1 2014-07-29 15:51:01.000000000 -0400
3     +++ smeserver-lazy_admin_tools-1.1/root/usr/sbin/lat-users 2014-07-29 15:53:15.000000000 -0400
4     @@ -147,7 +147,7 @@ if ($Del) {
5     if ((db_get(\%accounts, $username)) && (db_get_type(\%accounts, $username) eq "user")) {
6     my $yn = 'yes';
7     my $userdir = `cat /etc/passwd|grep "^$username:"|cut -d":" -f6|tr -d '\n'`;
8     - print "user folder: '$userdir'\n";
9     + #print "user folder: '$userdir'\n";
10     if ( $userdir eq "/home/e-smith/files/users/$username" )
11     {
12     if (! $Frc) {
13     @@ -160,7 +160,6 @@ if ($Del) {
14     print "Deleting user account '$username'.\n";
15     db_delete(\%accounts, $username);
16     system("/sbin/e-smith/signal-event", "user-delete", $username);
17     - system("/usr/sbin/lat-groups -r -f -c='*|$username'");
18     }
19     }
20     else { print "'$username' is not a regular SME user with its home in /home/e-smith/files/users/, can not remove it\n\a";}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed