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 |
|
|
+++ smeserver-webshare-1.0.0/createlinks 2022-08-01 23:45:19.441000000 -0400 |
4 |
|
|
@@ -19,3 +19,18 @@ |
5 |
|
|
#-------------------------------------------------- |
6 |
|
|
my $panel = "manager"; |
7 |
|
|
panel_link("webshare", $panel); |
8 |
|
|
+ |
9 |
|
|
+my $event = "smeserver-webshare-update"; |
10 |
|
|
+event_templates($event, qw( |
11 |
|
|
+/etc/httpd/conf/httpd.conf |
12 |
|
|
+)); |
13 |
|
|
+ |
14 |
|
|
+event_services($event, qw( |
15 |
|
|
+ php-fpm restart |
16 |
|
|
+ httpd-e-smith restart |
17 |
|
|
+)); |
18 |
|
|
+ |
19 |
|
|
+use esmith::Build::Backup qw(:all); |
20 |
|
|
+backup_includes("smeserver-webshare", qw( |
21 |
|
|
+/opt/webshare |
22 |
|
|
+)); |
23 |
|
|
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 |
24 |
|
|
--- 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 |
25 |
|
|
+++ smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-01 23:43:13.776000000 -0400 |
26 |
|
|
@@ -27,8 +27,9 @@ |
27 |
|
|
$OUT .= " AuthUserFile \/home\/e-smith\/db\/webshare\/htpasswd.$key\n"; |
28 |
|
|
$OUT .= " Require valid-user\n"; |
29 |
|
|
$OUT .= " AddType application\/x-httpd-php \.php \.php3\n"; |
30 |
|
|
- $OUT .= " php_flag magic_quotes_gpc on\n"; |
31 |
|
|
- $OUT .= " php_flag track_vars on\n"; |
32 |
|
|
+ $OUT .= " <FilesMatch .php>\n"; |
33 |
|
|
+ $OUT .= ' SetHandler "proxy:unix:/var/run/php-fpm/php.sock|fcgi://localhost"'."\n"; |
34 |
|
|
+ $OUT .= " </FilesMatch>\n"; |
35 |
|
|
$OUT .= "<\/Directory>\n"; |
36 |
|
|
$OUT .= "\n"; |
37 |
|
|
} |