/[smeserver]/rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0.bz9671.RemoveDummyMysqlDatabase.patch
ViewVC logotype

Annotation of /rpms/e-smith-mysql/sme10/e-smith-mysql-2.6.0.bz9671.RemoveDummyMysqlDatabase.patch

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


Revision 1.1 - (hide annotations) (download)
Tue Jul 19 16:52:53 2016 UTC (7 years, 10 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-mysql-2_6_0-9_el7_sme
* Mon Jul 18 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-9.sme
- Remove Dummy database from backup and restoration [SME: 9671]
- Added  e-smith-mysql-2.6.0.bz9671.RemoveDummyMysqlDatabase.patch

1 stephdl 1.1 diff -Nur e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-dump-tables e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-dump-tables
2     --- e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-dump-tables 2016-02-05 23:29:32.000000000 +0100
3     +++ e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-dump-tables 2016-07-16 02:28:30.889035357 +0200
4     @@ -6,7 +6,7 @@
5     echo "mysqld is disabled - no tables dumped" >&2
6     exit 0
7     fi
8     -for db in $(mysql -BNre "show databases;")
9     +for db in $(mysql -BNre "show databases;"|egrep -vi 'information_schema|performance_schema')
10     do
11     mysqldump --ignore-table=mysql.event --single-transaction --add-drop-table -QB "$db" -r /home/e-smith/db/mysql/"$db".dump || exit 1
12     done
13     diff -Nur e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-load-tables e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-load-tables
14     --- e-smith-mysql-2.6.0.bz9671.old/root/etc/e-smith/events/actions/mysql-load-tables 2016-02-05 23:29:32.000000000 +0100
15     +++ e-smith-mysql-2.6.0.bz9671.new/root/etc/e-smith/events/actions/mysql-load-tables 2016-07-16 02:26:05.376344286 +0200
16     @@ -7,6 +7,7 @@
17     exit 0
18     fi
19     /bin/rm -f /home/e-smith/db/mysql/information_schema.dump
20     +/bin/rm -f /home/e-smith/db/mysql/performance_schema.dump
21     if [ ! -f /var/lib/mysql/mysql/user.frm ]
22     then
23     for db in $(ls /home/e-smith/db/mysql/*.dump 2> /dev/null | grep -v '/mysql.dump')

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