/[smecontribs]/rpms/smeserver-cacti/contribs8/smeserver-cacti-0.8.8b-patch2.patch
ViewVC logotype

Annotation of /rpms/smeserver-cacti/contribs8/smeserver-cacti-0.8.8b-patch2.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Oct 18 20:45:27 2013 UTC (11 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-cacti-0_8_8b-12_el5_sme, smeserver-cacti-0_8_8b-7_el5_sme, smeserver-cacti-0_8_8b-6_el5_sme, smeserver-cacti-0_8_8b-8_el5_sme, smeserver-cacti-0_8_8b-11_el5_sme, smeserver-cacti-0_8_8b-10_el5_sme, smeserver-cacti-0_8_8b-9_el5_sme
* Fri Oct 18 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.8.8b-6.sme
- fix missing type
- fix wrong path in Virtualhost template
- fix DB not creating
- fix extra file in template

1 unnilennium 1.1 diff -up smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti.patch2 smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti
2     --- smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti.patch2 2013-10-18 16:14:47.000000000 -0400
3     +++ smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/e-smith/sql/init/80cacti 2013-10-18 16:14:34.000000000 -0400
4     @@ -0,0 +1,20 @@
5     +{
6     + my $db = $cacti{DbName} || 'cacti_sme';
7     + my $user = $cacti{DbUser} || 'cacti';
8     + my $pass = $cacti{DbPassword} || 'changeme';
9     + $OUT .= <<END
10     +#! /bin/sh
11     + if [ -d /var/lib/mysql/$db ]; then
12     + exit
13     + fi
14     + /usr/bin/mysql <<EOF
15     + CREATE DATABASE $db DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
16     + use $db;
17     + use mysql;
18     + GRANT ALL PRIVILEGES ON $db.* TO $user\@localhost
19     + IDENTIFIED BY '$pass';
20     + flush privileges;
21     +EOF
22     + /usr/bin/mysql $db < /etc/e-smith/db/configuration/migrate/80cacti_sme.sql
23     +END
24     +}
25     \ Pas de fin de ligne à la fin du fichier.

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