/[smecontribs]/rpms/smeserver-postgresql/contribs10/smeserver-postgresql-0.2.0-bz12264-backup.patch
ViewVC logotype

Annotation of /rpms/smeserver-postgresql/contribs10/smeserver-postgresql-0.2.0-bz12264-backup.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Dec 12 16:33:54 2022 UTC (23 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: smeserver-postgresql-0_2_0-4_el7_sme, smeserver-postgresql-0_2_0-3_el7_sme, HEAD
* Mon Dec 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2.0-3.sme
- fix pre-backup event fails error 256 [SME: 12264]

1 jpp 1.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

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