1 |
diff -Nur --no-dereference smeserver-zabbix-server-0.1.old/createlinks smeserver-zabbix-server-0.1/createlinks |
diff -Nur --no-dereference smeserver-zabbix-server-0.1.old/createlinks smeserver-zabbix-server-0.1/createlinks |
2 |
--- smeserver-zabbix-server-0.1.old/createlinks 2021-11-07 01:08:44.157000000 -0500 |
--- smeserver-zabbix-server-0.1.old/createlinks 2021-11-07 01:08:44.157000000 -0500 |
3 |
+++ smeserver-zabbix-server-0.1/createlinks 2021-11-07 01:41:41.185000000 -0500 |
+++ smeserver-zabbix-server-0.1/createlinks 2021-11-07 01:41:41.185000000 -0500 |
4 |
@@ -42,11 +42,13 @@ |
@@ -42,11 +42,14 @@ |
5 |
$contrib = "smeserver-zabbix-server"; |
$contrib = "smeserver-zabbix-server"; |
6 |
event_actions("$contrib-update", qw( |
event_actions("$contrib-update", qw( |
7 |
systemd-default 10 |
systemd-default 10 |
8 |
|
+ systemd-reload 12 |
9 |
+ zabbix-server 50 |
+ zabbix-server 50 |
10 |
)); |
)); |
11 |
|
|
16 |
/etc/zabbix/zabbix_server.conf |
/etc/zabbix/zabbix_server.conf |
17 |
/usr/share/zabbix/.user.ini |
/usr/share/zabbix/.user.ini |
18 |
/etc/systemd/system-preset/49-koozali.preset |
/etc/systemd/system-preset/49-koozali.preset |
19 |
@@ -57,6 +59,6 @@ |
@@ -57,6 +60,6 @@ |
20 |
event_services("$contrib-update", qw( |
event_services("$contrib-update", qw( |
21 |
httpd-e-smith sigusr1 |
httpd-e-smith sigusr1 |
22 |
php74-php-fpm reload |
php74-php-fpm reload |
24 |
+ zabbix-server restart |
+ zabbix-server restart |
25 |
)); |
)); |
26 |
|
|
27 |
|
diff -Nur --no-dereference smeserver-zabbix-server-0.1.old/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-server smeserver-zabbix-server-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-server |
28 |
|
--- smeserver-zabbix-server-0.1.old/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-server 2021-11-07 22:48:03.407000000 -0500 |
29 |
|
+++ smeserver-zabbix-server-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-server 2021-11-07 22:49:14.498000000 -0500 |
30 |
|
@@ -5,7 +5,7 @@ |
31 |
|
|
32 |
|
my $schema = `rpm -qd zabbix-server-mysql | grep create`; |
33 |
|
chomp $schema; |
34 |
|
-my $curcharset=`echo 'show variables like "character_set_database";'|mysql $db|grep character_set_database|sed -r 's/^character_set_database\\s*([a-zA-Z0-9_-]+)/\\1/'`; |
35 |
|
+my $curcharset= ( -d "/var/lib/mysql/$db" ) ? `echo 'show variables like "character_set_database";'|mysql $db|grep character_set_database|sed -r 's/^character_set_database\\s*([a-zA-Z0-9_-]+)/\\1/'` : "utf8"; |
36 |
|
chomp $curcharset; |
37 |
|
|
38 |
|
$OUT .= <<"END"; |