1 |
diff -Nur --no-dereference smeserver-cacti-1.1.19.old/createlinks smeserver-cacti-1.1.19/createlinks |
diff -Nur --no-dereference smeserver-cacti-1.1.19.old/createlinks smeserver-cacti-1.1.19/createlinks |
2 |
--- smeserver-cacti-1.1.19.old/createlinks 2014-06-16 11:53:01.000000000 -0400 |
--- smeserver-cacti-1.1.19.old/createlinks 2014-06-16 11:53:01.000000000 -0400 |
3 |
+++ smeserver-cacti-1.1.19/createlinks 2022-07-26 00:03:16.700000000 -0400 |
+++ smeserver-cacti-1.1.19/createlinks 2022-07-26 00:15:21.267000000 -0400 |
4 |
@@ -5,6 +5,7 @@ |
@@ -5,6 +5,7 @@ |
5 |
for my $event (qw( |
for my $event (qw( |
6 |
post-upgrade |
post-upgrade |
23 |
+ /etc/e-smith/sql/init/80cacti |
+ /etc/e-smith/sql/init/80cacti |
24 |
+)); |
+)); |
25 |
+ |
+ |
26 |
+event_services($event, qw( |
+event_services($event, |
27 |
+ crond restart |
+ 'crond' => 'restart', |
28 |
+ mysql.init restart |
+ 'mysql.init' => 'restart', |
29 |
+ httpd-e-smith sigusr1 |
+ 'httpd-e-smith' => 'sigusr1', |
30 |
+ php74-php-fpm reload-or-restart |
+ 'php74-php-fpm' => 'reload-or-restart' |
31 |
+)); |
+); |
32 |
+ |
+ |
33 |
+#backup ? |
+#backup ? |
34 |
+#use esmith::Build::Backup qw(:all); |
+#use esmith::Build::Backup qw(:all); |
36 |
+# |
+# |
37 |
+#)); |
+#)); |
38 |
+ |
+ |
39 |
|
diff -Nur --no-dereference smeserver-cacti-1.1.19.old/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti smeserver-cacti-1.1.19/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti |
40 |
|
--- smeserver-cacti-1.1.19.old/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti 2019-12-11 14:46:28.000000000 -0500 |
41 |
|
+++ smeserver-cacti-1.1.19/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti 2022-07-26 00:29:43.464000000 -0400 |
42 |
|
@@ -3,7 +3,7 @@ |
43 |
|
my $user = $cacti{DbUser} || 'cacti'; |
44 |
|
my $pass = $cacti{DbPassword} || 'changeme'; |
45 |
|
$OUT .= <<END |
46 |
|
-#! /bin/sh |
47 |
|
+#!/bin/bash |
48 |
|
if [ -d /var/lib/mysql/$db ]; then |
49 |
|
exit |
50 |
|
fi |
51 |
|
@@ -19,4 +19,4 @@ |
52 |
|
/usr/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo/ 2>/dev/null |/usr/bin/mysql mysql |
53 |
|
/usr/bin/mysql $db < /etc/e-smith/db/configuration/migrate/80cacti_sme.sql |
54 |
|
END |
55 |
|
-} |
56 |
|
\ Pas de fin de ligne à la fin du fichier |
57 |
|
+} |
58 |
diff -Nur --no-dereference smeserver-cacti-1.1.19.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti smeserver-cacti-1.1.19/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti |
diff -Nur --no-dereference smeserver-cacti-1.1.19.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti smeserver-cacti-1.1.19/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti |
59 |
--- smeserver-cacti-1.1.19.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti 2014-06-16 11:53:00.000000000 -0400 |
--- smeserver-cacti-1.1.19.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti 2014-06-16 11:53:00.000000000 -0400 |
60 |
+++ smeserver-cacti-1.1.19/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti 2022-07-26 00:04:03.542000000 -0400 |
+++ smeserver-cacti-1.1.19/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Cacti 2022-07-26 00:30:15.300000000 -0400 |
61 |
@@ -5,32 +5,19 @@ |
@@ -5,32 +5,19 @@ |
62 |
SSLRequireSSL |
SSLRequireSSL |
63 |
Options -Indexes |
Options -Indexes |
80 |
- php_flag track_vars on |
- php_flag track_vars on |
81 |
+ Require { (($cacti{'access'} ||"private") eq "public") ? "all granted" : "ip $localAccess $externalSSLAccess"; } |
+ Require { (($cacti{'access'} ||"private") eq "public") ? "all granted" : "ip $localAccess $externalSSLAccess"; } |
82 |
+ AddType application/x-httpd-php .php |
+ AddType application/x-httpd-php .php |
83 |
+ <FilesMatch \.php$\> |
+ <FilesMatch \.php$ > |
84 |
+ SetHandler "proxy:unix:/var/run/php-fpm/php74-cacti.sock|fcgi://localhost" |
+ SetHandler "proxy:unix:/var/run/php-fpm/php74-cacti.sock|fcgi://localhost" |
85 |
+ </FilesMatch> |
+ </FilesMatch> |
86 |
</Directory> |
</Directory> |