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 |
|
|
} |