/[smecontribs]/rpms/smeserver-webshare/contribs10/smeserver-webshare-1.0.0-sme10-backup.patch
ViewVC logotype

Contents of /rpms/smeserver-webshare/contribs10/smeserver-webshare-1.0.0-sme10-backup.patch

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


Revision 1.2 - (show annotations) (download)
Tue Aug 2 03:52:06 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
Changes since 1.1: +10 -2 lines
* Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0.0-13.sme
- update to httpd 2.4 access syntax [SME: 12066]
  thanks to Vasarhelyi Zsolt
- add to core backup [SME: 12030]
- add update event, use php-fpm [SME: 11078]
  might need its dedicated pool

1 diff -Nur --no-dereference smeserver-webshare-1.0.0.old/createlinks smeserver-webshare-1.0.0/createlinks
2 --- smeserver-webshare-1.0.0.old/createlinks 2002-05-05 22:44:40.000000000 -0400
3 +++ smeserver-webshare-1.0.0/createlinks 2022-08-01 23:51:24.447000000 -0400
4 @@ -2,6 +2,7 @@
5 # This script creates the symlinks needed by this RPM
6 # Specific support exists to create symlinks within e-smith web "panels"
7 # and for links from named "events" directories into the "actions" directory
8 +use esmith::Build::CreateLinks qw(:all);
9
10 sub panel_link
11 {
12 @@ -19,3 +20,18 @@
13 #--------------------------------------------------
14 my $panel = "manager";
15 panel_link("webshare", $panel);
16 +
17 +my $event = "smeserver-webshare-update";
18 +event_templates($event, qw(
19 +/etc/httpd/conf/httpd.conf
20 +));
21 +
22 +event_services($event, qw(
23 + php-fpm restart
24 + httpd-e-smith restart
25 +));
26 +
27 +use esmith::Build::Backup qw(:all);
28 +backup_includes("smeserver-webshare", qw(
29 +/opt/webshare
30 +));
31 diff -Nur --no-dereference smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias
32 --- smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-01 23:41:07.957000000 -0400
33 +++ smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-01 23:43:13.776000000 -0400
34 @@ -27,8 +27,9 @@
35 $OUT .= " AuthUserFile \/home\/e-smith\/db\/webshare\/htpasswd.$key\n";
36 $OUT .= " Require valid-user\n";
37 $OUT .= " AddType application\/x-httpd-php \.php \.php3\n";
38 - $OUT .= " php_flag magic_quotes_gpc on\n";
39 - $OUT .= " php_flag track_vars on\n";
40 + $OUT .= " <FilesMatch .php>\n";
41 + $OUT .= ' SetHandler "proxy:unix:/var/run/php-fpm/php.sock|fcgi://localhost"'."\n";
42 + $OUT .= " </FilesMatch>\n";
43 $OUT .= "<\/Directory>\n";
44 $OUT .= "\n";
45 }

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