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

Contents of /rpms/smeserver-dl/contribs10/smeserver-dl-0.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)
Mon Apr 19 09:24:00 2021 UTC (3 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-dl-0_2_3-6_el7_sme, smeserver-dl-0_2_3-8_el7_sme, smeserver-dl-0_2_3-7_el7_sme, smeserver-dl-0_2_3-2_el7_sme, smeserver-dl-0_2_3-4_el7_sme, smeserver-dl-0_2_3-3_el7_sme, smeserver-dl-0_2_3-5_el7_sme, HEAD
* Mon Apr 19 2021 Brian Read <brianr@bjsystems.co.uk> 0.2.3-2.sme
- Initial import to SME10 tree [SME: 11567]
- Add Update event to createlinks

1 diff -urN smeserver-dl-0.2.3.old/createlinks smeserver-dl-0.2.3/createlinks
2 --- smeserver-dl-0.2.3.old/createlinks 2018-01-21 09:12:21.000000000 +0000
3 +++ smeserver-dl-0.2.3/createlinks 2021-04-19 08:55:10.718189594 +0100
4 @@ -1,10 +1,30 @@
5 #!/usr/bin/perl -w
6 +use esmith::Build::CreateLinks qw(:all);
7 +# our event specific for updating with yum without reboot
8 +$event = 'smeserver-dl-update';
9 +#add here the path to your templates needed to expand
10 +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
11 +
12 +foreach my $file (qw(
13 + /etc/systemd/system-preset/49-koozali.preset
14 +))
15 +{
16 + templates2events( $file, $event );
17 +}
18 +#action needed in case we have a systemd unit
19 +event_link('systemd-default', $event, '10');
20 +event_link('systemd-reload', $event, '50');
21 +#action specific to this package
22 +#event_link('action', $event, '30');
23 +#services we need to restart
24 +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service);
25 +#and Server Manager panel link
26 +#panel_link('somefunction', 'manager');
27
28 -use esmith::Build::CreateLinks qw(:all);
29
30 # Templates to expand
31 -templates2events("/etc/dl.php", qw(bootstrap-console-save webapps-update));
32 -templates2events("/etc/e-smith/sql/init/dl", qw(bootstrap-console-save webapps-update));
33 +templates2events("/etc/dl.php", qw(smeserver-dl-update bootstrap-console-save webapps-update));
34 +templates2events("/etc/e-smith/sql/init/dl", qw(smeserver-dl-update bootstrap-console-save webapps-update));
35
36 # PHP header and footer
37 safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/dl.php/template-begin");
38 diff -urN smeserver-dl-0.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl smeserver-dl-0.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl
39 --- smeserver-dl-0.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl 2018-01-21 09:12:21.000000000 +0000
40 +++ smeserver-dl-0.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl 2021-04-19 08:57:59.061849792 +0100
41 @@ -25,17 +25,22 @@
42
43 my $php =<<_EOF;
44 AddType application/x-httpd-php .php
45 - php_admin_flag file_uploads On
46 - php_admin_flag magic_quotes Off
47 - php_admin_flag magic_quotes_gpc Off
48 - php_admin_value upload_max_filesize $maxupload
49 - php_admin_value post_max_size $maxpost
50 - php_admin_value memory_limit 100M
51 - php_admin_flag output_buffering Off
52 - php_admin_value max_execution_time 0
53 - php_admin_value upload_tmp_dir /var/lib/dl/tmp
54 - php_admin_value session.save_path /var/lib/dl/tmp
55 - php_admin_value session.gc_maxlifetime 86400
56 +
57 +<FilesMatch .php$>
58 + SetHandler "proxy:unix:/var/run/php-fpm/php74.sock|fcgi://localhost"
59 +</FilesMatch>
60 +
61 + #php_admin_flag file_uploads On
62 + #php_admin_flag magic_quotes Off
63 + #php_admin_flag magic_quotes_gpc Off
64 + #php_admin_value upload_max_filesize $maxupload
65 + #php_admin_value post_max_size $maxpost
66 + #php_admin_value memory_limit 100M
67 + #php_admin_flag output_buffering Off
68 + #php_admin_value max_execution_time 0
69 + #php_admin_value upload_tmp_dir /var/lib/dl/tmp
70 + #php_admin_value session.save_path /var/lib/dl/tmp
71 + #php_admin_value session.gc_maxlifetime 86400
72 _EOF
73 if ($fastcgi_mod eq 'mod_fastcgi'){
74 $php = " AddHandler phpdl-fastcgi .php\n";

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