/[smecontribs]/rpms/smeserver-zabbix-server/contribs10/smeserver-zabbix-server-0.1-multiple_dbpatches.patch
ViewVC logotype

Contents of /rpms/smeserver-zabbix-server/contribs10/smeserver-zabbix-server-0.1-multiple_dbpatches.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Dec 4 18:33:26 2020 UTC (3 years, 10 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-zabbix-server-0_1-22_el7_sme, smeserver-zabbix-server-0_1-29_el7_sme, smeserver-zabbix-server-0_1-28_el7_sme, smeserver-zabbix-server-0_1-25_el7_sme, smeserver-zabbix-server-0_1-27_el7_sme, smeserver-zabbix-server-0_1-24_el7_sme, smeserver-zabbix-server-0_1-21_el7_sme, smeserver-zabbix-server-0_1-26_el7_sme, smeserver-zabbix-server-0_1-30_el7_sme, smeserver-zabbix-server-0_1-20_el7_sme, smeserver-zabbix-server-0_1-23_el7_sme, smeserver-zabbix-server-0_1-31_el7_sme, HEAD
Initial import

1 --- smeserver-zabbix-server-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-server.multiple_dbpatches 2009-02-04 13:46:43.000000000 +0100
2 +++ smeserver-zabbix-server-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-server 2009-12-02 23:09:22.000000000 +0100
3 @@ -3,7 +3,6 @@
4 my $user = ${'zabbix-server'}{'DbUser'} || 'zabbix';
5 my $pass = ${'zabbix-server'}{'DbPassword'} || 'secret';
6
7 -my $dbpatch = `rpm -qd zabbix-server | grep dbpatch | grep mysql`;
8 my $schema = `rpm -qd zabbix-server | grep schema | grep mysql`;
9 my $data = `rpm -qd zabbix-server | grep data.sql`;
10 my $images = `rpm -qd zabbix-server | grep images_mysql`;
11 @@ -12,7 +11,9 @@
12 $OUT .= <<"END";
13 #! /bin/sh
14 if [ -d /var/lib/mysql/$db ]; then
15 - /usr/bin/mysql $db < $dbpatch
16 + for P in \$(rpm -qd zabbix-server | grep dbpatch | grep mysql); do
17 + /usr/bin/mysql $db < \$P
18 + done
19 else
20 /usr/bin/mysqladmin create $db
21 /usr/bin/mysql $db < $schema

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed