1 |
unnilennium |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-postgresql-0.0.1/root/etc/e-smith/events/actions/pgsql-dump-tables mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/events/actions/pgsql-dump-tables |
2 |
|
|
--- smeserver-postgresql-0.0.1/root/etc/e-smith/events/actions/pgsql-dump-tables 2006-05-24 15:16:23.000000000 -0400 |
3 |
|
|
+++ mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/events/actions/pgsql-dump-tables 2006-09-25 10:29:05.000000000 -0400 |
4 |
|
|
@@ -1,4 +1,10 @@ |
5 |
|
|
#!/bin/sh |
6 |
|
|
|
7 |
|
|
+status=$(/sbin/e-smith/config getprop postgresql status) |
8 |
|
|
+if [ "$status" = "disabled" ] |
9 |
|
|
+then |
10 |
|
|
+ echo "postgresql is disabled - no tables dumped" >&2 |
11 |
|
|
+ exit 0 |
12 |
|
|
+fi |
13 |
|
|
exec >/home/e-smith/db/pgsql/pgsql.dump |
14 |
|
|
exec chpst -u postgres pg_dumpall |