/[smecontribs]/rpms/smeserver-mod_deflate/contribs10/smeserver-mod_deflate-1.2-bz11274-bz8901-updateEvent-logrotate.patch
ViewVC logotype

Contents of /rpms/smeserver-mod_deflate/contribs10/smeserver-mod_deflate-1.2-bz11274-bz8901-updateEvent-logrotate.patch

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


Revision 1.2 - (show annotations) (download)
Thu Feb 29 01:33:28 2024 UTC (9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mod_deflate-1_2-5_el7_sme, HEAD
Changes since 1.1: +10 -10 lines
* Wed Feb 28 2024 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-5.sme
- revert logrotate, as taken care by httpd logrotate now [SME: 8901]

1 diff -Nur --no-dereference smeserver-mod_deflate-1.2.old/createlinks smeserver-mod_deflate-1.2/createlinks
2 --- smeserver-mod_deflate-1.2.old/createlinks 2005-12-30 01:00:46.000000000 -0500
3 +++ smeserver-mod_deflate-1.2/createlinks 2021-04-02 15:41:52.700000000 -0400
4 @@ -1,51 +1,11 @@
5 #!/usr/bin/perl -w
6 +
7 +use esmith::Build::CreateLinks qw(:all);
8 +
9 # This script creates the symlinks needed by this RPM
10 # Specific support exists to create symlinks within e-smith web "panels"
11 # and for links from named "events" directories into the "actions" directory
12
13 -sub panel_link
14 -{
15 - my ($function, $panel) = @_;
16 -
17 - unlink "root/etc/e-smith/web/panels/$panel/cgi-bin/$function";
18 - symlink("../../../functions/$function",
19 - "root/etc/e-smith/web/panels/$panel/cgi-bin/$function")
20 - or die "Can't symlink to root/etc/e-smith/web/panels/$panel".
21 - "/cgi-bin/$function: $!";
22 -}
23 -
24 -sub event_link
25 -{
26 - my ($action, $event, $level) = @_;
27 -
28 - unlink "root/etc/e-smith/events/${event}/S${level}${action}";
29 - symlink("../actions/${action}",
30 - "root/etc/e-smith/events/${event}/S${level}${action}")
31 - or die "Can't symlink to " .
32 - "root/etc/e-smith/events/${event}/S${level}${action}: $!";
33 -}
34 -
35 -#--------------------------------------------------
36 -# functions for manager panel
37 -#--------------------------------------------------
38 -my $panel = "manager";
39 -
40 -#panel_link("function1", $panel);
41 -#panel_link("function2", $panel);
42 -
43 -#--------------------------------------------------
44 -# actions for console-save event:
45 -#--------------------------------------------------
46 -$event = "console-save";
47 -
48 -#event_link("action1", $event, "55");
49 -#event_link("action2", $event, "60");
50 -
51 -#--------------------------------------------------
52 -# actions for domain-create event:
53 -#--------------------------------------------------
54 -$event = "domain-create";
55 -
56 -#event_link("action1", $event, "55");
57 -#event_link("action2", $event, "90");
58 -
59 +$event = "smeserver-mod_deflate-update";
60 +safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
61 +templates2events("/etc/httpd-e-smith/conf/httpd.conf", $event);
62 diff -Nur --no-dereference smeserver-mod_deflate-1.2.old/root/etc/logrotate.d/modDeflate smeserver-mod_deflate-1.2/root/etc/logrotate.d/modDeflate
63 --- smeserver-mod_deflate-1.2.old/root/etc/logrotate.d/modDeflate 1969-12-31 19:00:00.000000000 -0500
64 +++ smeserver-mod_deflate-1.2/root/etc/logrotate.d/modDeflate 2021-04-02 15:37:38.157000000 -0400
65 @@ -0,0 +1,11 @@
66 +#/var/log/httpd/deflate_log {
67 +# missingok
68 +# daily
69 +# size 1M
70 +# rotate 10
71 +# compress
72 +# notifempty
73 +# copytruncate
74 +#
75 +#}
76 +

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