--- rpms/smeserver-cacti/contribs10/smeserver-cacti-1.1.19-sme10.patch 2022/07/26 04:09:02 1.1 +++ rpms/smeserver-cacti/contribs10/smeserver-cacti-1.1.19-sme10.patch 2022/07/26 04:35:57 1.2 @@ -1,6 +1,6 @@ diff -Nur --no-dereference smeserver-cacti-1.1.19.old/createlinks smeserver-cacti-1.1.19/createlinks --- smeserver-cacti-1.1.19.old/createlinks 2014-06-16 11:53:01.000000000 -0400 -+++ 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 @@ -5,6 +5,7 @@ for my $event (qw( post-upgrade @@ -23,12 +23,12 @@ diff -Nur --no-dereference smeserver-cac + /etc/e-smith/sql/init/80cacti +)); + -+event_services($event, qw( -+ crond restart -+  mysql.init restart -+ httpd-e-smith sigusr1 -+ php74-php-fpm reload-or-restart -+)); ++event_services($event, ++ 'crond' => 'restart', ++ 'mysql.init' => 'restart', ++ 'httpd-e-smith' => 'sigusr1', ++ 'php74-php-fpm' => 'reload-or-restart' ++); + +#backup ? +#use esmith::Build::Backup qw(:all); @@ -36,9 +36,28 @@ diff -Nur --no-dereference smeserver-cac +# +#)); + +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 +--- 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 ++++ smeserver-cacti-1.1.19/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti 2022-07-26 00:29:43.464000000 -0400 +@@ -3,7 +3,7 @@ + my $user = $cacti{DbUser} || 'cacti'; + my $pass = $cacti{DbPassword} || 'changeme'; + $OUT .= </dev/null |/usr/bin/mysql mysql + /usr/bin/mysql $db < /etc/e-smith/db/configuration/migrate/80cacti_sme.sql + END +-} +\ Pas de fin de ligne à la fin du fichier ++} 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 --- 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/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 @@ -5,32 +5,19 @@ SSLRequireSSL Options -Indexes @@ -61,7 +80,7 @@ diff -Nur --no-dereference smeserver-cac - php_flag track_vars on + Require { (($cacti{'access'} ||"private") eq "public") ? "all granted" : "ip $localAccess $externalSSLAccess"; } + AddType application/x-httpd-php .php -+ ++ + SetHandler "proxy:unix:/var/run/php-fpm/php74-cacti.sock|fcgi://localhost" +