/[smecontribs]/rpms/smeserver-lazy_admin_tools/contribs8/smeserver-lazy_admin_tools-1.0-patch4.patch
ViewVC logotype

Annotation of /rpms/smeserver-lazy_admin_tools/contribs8/smeserver-lazy_admin_tools-1.0-patch4.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 25 00:35:06 2013 UTC (10 years, 11 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-lazy_admin_tools-1_0-6_el5_sme
* Mon Jun 24 2013 JP PIALASSE tests@pialasse.com  1.0-6.sme
- fixed  Can't enable procmail [SME: 7139]
- fixed  Error during creation of pptp access with lazy admin tools [SME: 7695]
- patch4
* Mon May 13 2013 JP PIALASSE tests@pialasse.com  1.0-5.sme
- fixed lat-procmail [SME: 7139]
- fixed removing user with home dir not in /home/e-smith/files/users/ [SME: 7162]
- create basic SME pseudonyms using option -n for nicknames [SME: 7284]
- patch3
* Sat Feb 02 2013 JP PIALASSE tests@pialasse.com  1.0-4.sme
- fixed empty  Gid property  creation on user update bug [SME: 7192]
- added lat-shadow binary [SME: 7137]
- patch1 and patch2
* Sat Feb 02 2013 JP PIALASSE tests@pialasse.com  1.0-3.sme
- fixed warning on empty group creation/update bug [SME: 7202]
- fixed uid changed on user update bug [SME: 7196]
- fixed warning on user creation/update bug [SME: 7192]
- patch0
* Sat Feb 02 2013 JP PIALASSE tests@pialasse.com  1.0-2.sme
- binary are not executable [SME: 7138]
* Sat May 26 2012 JP PIALASSE tests@pialasse.com  1.0-1.sme
- Initial version

1 unnilennium 1.1 diff -up smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-pptp.patch4 smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-pptp
2     --- smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-pptp.patch4 2012-05-26 19:04:35.000000000 -0400
3     +++ smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-pptp 2013-06-24 20:25:45.000000000 -0400
4     @@ -84,6 +84,19 @@ foreach my $record (@records)
5     or die ("An error occurred while updating account '$username'.\n");
6     last SWITCH;
7     };
8     + ($MVer=="8") && do {
9     + db_set_prop(\%accounts, $username, 'VPNClientAccess', "no");
10     + system("/sbin/e-smith/signal-event", "remoteaccess-update", $username) == 0
11     + or die ("An error occurred while updating account '$username'.\n");
12     + last SWITCH;
13     + };
14     + ($MVer=="9") && do {
15     + db_set_prop(\%accounts, $username, 'VPNClientAccess', "no");
16     + system("/sbin/e-smith/signal-event", "remoteaccess-update", $username) == 0
17     + or die ("An error occurred while updating account '$username'.\n");
18     + last SWITCH;
19     + };
20     +
21     }
22     }
23     # Activate PPTP
24     @@ -108,6 +121,19 @@ foreach my $record (@records)
25     or die ("An error occurred while updating account '$username'.\n");
26     last SWITCH;
27     };
28     + ($MVer=="8") && do {
29     + db_set_prop(\%accounts, $username, 'VPNClientAccess', "yes");
30     + system("/sbin/e-smith/signal-event", "remoteaccess-update", $username) == 0
31     + or die ("An error occurred while updating account '$username'.\n");
32     + last SWITCH;
33     + };
34     + ($MVer=="9") && do {
35     + db_set_prop(\%accounts, $username, 'VPNClientAccess', "yes");
36     + system("/sbin/e-smith/signal-event", "remoteaccess-update", $username) == 0
37     + or die ("An error occurred while updating account '$username'.\n");
38     + last SWITCH;
39     + };
40     +
41     }
42     }
43     else { print "Unknown argument '$fields[1]' for user $username"; }
44     diff -up smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-procmail.patch4 smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-procmail
45     --- smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-procmail.patch4 2006-02-09 23:19:25.000000000 -0500
46     +++ smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-procmail 2013-06-24 20:22:40.000000000 -0400
47     @@ -31,8 +31,8 @@ if ( $Hlp ) { &PrintPod(9); exit; }
48     # Check for e-smith-user-panel
49     my $UPanel=`rpm -qa | grep -c "smeserver-userpanel"`;
50     if ( $UPanel < 1 ) {
51     - print "\nThis tool requires the smeserver-userpanel contribution from Dungog Networks.\n";
52     - print "Please download it from http://dungog.net and install it first.\n\n\a";
53     + print "\nThis tool requires the smeserver-userpanel contribution .\n";
54     + print "Please install it with 'yum install smeserver-userpanel --enablerepo=smecontribs'.\n\n\a";
55     exit;
56     }
57    
58     @@ -73,7 +73,7 @@ foreach my $record (@records)
59     print "Activating procmail for user '$username'.\n";
60     db_set(\%processmail, $username, 'settings', \%user);
61     db_set_prop(\%accounts, $username, 'EmailForward', 'procmail');
62     - system("/sbin/e-smith/signal-event", "user-modprocmail", $username) == 0
63     + system("/sbin/e-smith/signal-event", "user-modify", $username) == 0
64     or die ("An error occurred while updating account '$username'.\n");
65     }
66     }
67     @@ -81,7 +81,7 @@ foreach my $record (@records)
68     print "Deactivating procmail for user '$username'.\n";
69     db_delete(\%processmail, $username, 'settings', \%user);
70     db_set_prop(\%accounts, $username, 'EmailForward', 'local');
71     - system("/sbin/e-smith/signal-event", "user-modprocmail", $username) == 0
72     + system("/sbin/e-smith/signal-event", "user-modify", $username) == 0
73     or die ("An error occurred while updating account '$username'.\n");
74     }
75     }

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