/[smecontribs]/rpms/smeserver-zabbix-proxy/contribs7/smeserver-zabbix-proxy-0.1-multiple_dbpatches.patch
ViewVC logotype

Annotation of /rpms/smeserver-zabbix-proxy/contribs7/smeserver-zabbix-proxy-0.1-multiple_dbpatches.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Apr 15 11:36:00 2010 UTC (14 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-proxy-0_1-10_el4_sme, smeserver-zabbix-proxy-0_1-8_el4_sme, smeserver-zabbix-proxy-0_1-7_el4_sme, smeserver-zabbix-proxy-0_1-9_el4_sme, HEAD
* Thu Apr 15 2010 Daniel B. <daniel@firewall-services.com> 0.1-7
- Support multiple dbpatches

1 vip-ire 1.1 --- smeserver-zabbix-proxy-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy.multiple_dbpatches 2010-04-15 13:30:29.000000000 +0200
2     +++ smeserver-zabbix-proxy-0.1/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy 2010-04-15 13:35:00.000000000 +0200
3     @@ -3,7 +3,6 @@
4     my $user = ${'zabbix-proxy'}{'DbUser'} || 'zabbix';
5     my $pass = ${'zabbix-proxy'}{'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