1 |
diff -Nur --no-dereference smeserver-postgresql-0.2.0.old/root/etc/e-smith/events/actions/pgsql-dump-tables smeserver-postgresql-0.2.0/root/etc/e-smith/events/actions/pgsql-dump-tables |
2 |
--- smeserver-postgresql-0.2.0.old/root/etc/e-smith/events/actions/pgsql-dump-tables 2021-06-16 10:48:55.000000000 -0400 |
3 |
+++ smeserver-postgresql-0.2.0/root/etc/e-smith/events/actions/pgsql-dump-tables 2022-12-12 11:29:04.347000000 -0500 |
4 |
@@ -6,7 +6,10 @@ |
5 |
echo "postgresql is disabled - no tables dumped" >&2 |
6 |
exit 0 |
7 |
fi |
8 |
+pgdumpall="/usr/pgsql-13/bin/pg_dumpall" |
9 |
+#avoid error could not change directory to |
10 |
+cd /tmp |
11 |
umask 027 |
12 |
exec >/home/e-smith/db/pgsql/pgsql.dump |
13 |
chgrp postgres /home/e-smith/db/pgsql/pgsql.dump |
14 |
-exec chpst -u postgres pg_dumpall |
15 |
+exec chpst -u postgres $pgdumpall |