1 |
jpp |
1.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 |
jpp |
1.2 |
+++ 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 |
jpp |
1.1 |
#-------------------------------------------------- |
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 |
|
|
} |