1 |
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 |
3 |
+++ smeserver-zabbix-server-0.1/createlinks 2021-11-07 01:41:41.185000000 -0500 |
4 |
@@ -42,11 +42,19 @@ |
5 |
$contrib = "smeserver-zabbix-server"; |
6 |
event_actions("$contrib-update", qw( |
7 |
systemd-default 10 |
8 |
+ systemd-reload 12 |
9 |
+ zabbix-server 50 |
10 |
)); |
11 |
|
12 |
event_templates("$contrib-update", qw( |
13 |
/etc/httpd/conf/httpd.conf |
14 |
/etc/crontab |
15 |
+ /etc/rc.d/init.d/masq |
16 |
+ /etc/sudoers |
17 |
+ /etc/e-smith/sql/init/80zabbix-server |
18 |
/etc/zabbix/zabbix_server.conf |
19 |
+ /etc/zabbix/zabbix.conf.php |
20 |
+ /etc/zabbix/web/zabbix.conf.php |
21 |
+ /var/lib/zabbix/bin/sendxmpp |
22 |
/usr/share/zabbix/.user.ini |
23 |
/etc/systemd/system-preset/49-koozali.preset |
24 |
@@ -57,6 +65,7 @@ |
25 |
event_services("$contrib-update", qw( |
26 |
httpd-e-smith sigusr1 |
27 |
php74-php-fpm reload |
28 |
+ masq adjust |
29 |
- zabbix-server start |
30 |
+ zabbix-server restart |
31 |
)); |
32 |
|
33 |
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 |
34 |
--- 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 |
35 |
+++ 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 |
36 |
@@ -5,7 +5,7 @@ |
37 |
|
38 |
my $schema = `rpm -qd zabbix-server-mysql | grep create`; |
39 |
chomp $schema; |
40 |
-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/'`; |
41 |
+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"; |
42 |
chomp $curcharset; |
43 |
|
44 |
$OUT .= <<"END"; |