/[smecontribs]/rpms/smeserver-phpsysinfo/contribs10/smeserver-phpsysinfo-3.2.3-Add-Update-event-to-createlinks.patch
ViewVC logotype

Contents of /rpms/smeserver-phpsysinfo/contribs10/smeserver-phpsysinfo-3.2.3-Add-Update-event-to-createlinks.patch

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


Revision 1.1 - (show annotations) (download)
Wed Apr 7 18:30:49 2021 UTC (3 years, 7 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-phpsysinfo-3_2_3-6_el7_sme, smeserver-phpsysinfo-3_2_3-5_el7_sme, smeserver-phpsysinfo-3_2_3-4_el7_sme, HEAD
* Wed Apr 07 2021 Brian Read <brianr@bjsystems.co.uk> 3.2.3-4.sme
- Add Update event to createlinks [SME: 11054]

1 diff -urN smeserver-phpsysinfo-3.2.3.old/createlinks smeserver-phpsysinfo-3.2.3/createlinks
2 --- smeserver-phpsysinfo-3.2.3.old/createlinks 2015-09-22 07:07:37.000000000 +0100
3 +++ smeserver-phpsysinfo-3.2.3/createlinks 2021-04-07 19:25:06.069469342 +0100
4 @@ -1,6 +1,25 @@
5 #! /usr/bin/perl -w
6 -
7 use esmith::Build::CreateLinks qw(:all);
8 +# our event specific for updating with yum without reboot
9 +$event = 'smeserver-phpsysinfo-update';
10 +#add here the path to your templates needed to expand
11 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
12
13 +foreach my $file (qw(
14 + /etc/systemd/system-preset/49-koozali.preset
15 + /etc/httpd/conf/httpd.conf
16 +))
17 +{
18 + templates2events( $file, $event );
19 +}
20 +#action needed in case we have a systemd unit
21 +event_link('systemd-default', $event, '10');
22 +event_link('systemd-reload', $event, '50');
23 +#action specific to this package
24 +#event_link('action', $event, '30');
25 +#services we need to restart
26 +safe_symlink('restart',"root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
27 +#and Server Manager panel link
28 +#panel_link('somefunction', 'manager');
29 # Links for the panel
30 panel_link("phpsysinfo", "manager");
31 diff -urN smeserver-phpsysinfo-3.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias smeserver-phpsysinfo-3.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias
32 --- smeserver-phpsysinfo-3.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias 2015-09-22 07:07:37.000000000 +0100
33 +++ smeserver-phpsysinfo-3.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias 2021-04-07 19:20:28.273903527 +0100
34 @@ -25,7 +25,11 @@
35 require user admin
36 Satisfy all
37 AddType application/x-httpd-php .php .php3
38 - php_flag magic_quotes_gpc on
39 - php_flag track_vars on
40 +<FilesMatch .php$>
41 + SetHandler "proxy:unix:/var/run/php-fpm/php.sock|fcgi://localhost"
42 +</FilesMatch>
43 +
44 + #php_flag magic_quotes_gpc on
45 + #php_flag track_vars on
46 </Directory>
47

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