1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-mysql-1.12.0/root/etc/e-smith/events/actions/mysql-dump-tables mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/events/actions/mysql-dump-tables |
2 |
--- e-smith-mysql-1.12.0/root/etc/e-smith/events/actions/mysql-dump-tables 2006-03-16 01:44:28.000000000 -0500 |
3 |
+++ mezzanine_patched_e-smith-mysql-1.12.0/root/etc/e-smith/events/actions/mysql-dump-tables 2006-09-25 10:55:04.000000000 -0400 |
4 |
@@ -1,4 +1,10 @@ |
5 |
#!/bin/sh |
6 |
|
7 |
+status=$(/sbin/e-smith/config getprop mysqld status) |
8 |
+if [ "$status" = "disabled" ] |
9 |
+then |
10 |
+ echo "mysqld is disabled - no tables dumped" >&2 |
11 |
+ exit 0 |
12 |
+fi |
13 |
exec >/home/e-smith/db/mysql/mysql.dump |
14 |
exec /usr/bin/mysqldump --add-drop-table -A -Q |