Fix: #881146 syntax error in update_postgresql_tables_10_to_11.in
This commit is contained in:
parent
b2a44e5710
commit
d184bac9a4
13
bacula-5.2.12-update-postgresql-table.patch
Normal file
13
bacula-5.2.12-update-postgresql-table.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/updatedb/update_postgresql_tables_10_to_11.in b/updatedb/update_postgresql_tables_10_to_11.in
|
||||
index f5df19f..1be8033 100644
|
||||
--- a/updatedb/update_postgresql_tables_10_to_11.in
|
||||
+++ b/updatedb/update_postgresql_tables_10_to_11.in
|
||||
@@ -10,7 +10,7 @@ bindir=@POSTGRESQL_BINDIR@
|
||||
PATH="$bindir:$PATH"
|
||||
db_name=${db_name:-@db_name@}
|
||||
|
||||
-psql -f - -d ${db_name} $* <<END-OF-DATA
|
||||
+if psql -f - -d ${db_name} $* <<END-OF-DATA
|
||||
-- The alter table operation can be faster with a big maintenance_work_mem
|
||||
-- Uncomment and adapt this value to your environment
|
||||
-- SET maintenance_work_mem = '1GB';
|
@ -3,7 +3,7 @@
|
||||
|
||||
Name: bacula
|
||||
Version: 5.2.12
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||
# See LICENSE for details
|
||||
License: AGPLv3 with exceptions
|
||||
@ -33,6 +33,7 @@ Patch2: bacula-5.2.2-queryfile.patch
|
||||
Patch3: bacula-5.0.3-sqlite-priv.patch
|
||||
Patch4: bacula-5.2.11-bat-build.patch
|
||||
Patch5: bacula-5.2.12-seg-fault.patch
|
||||
Patch6: bacula-5.2.12-update-postgresql-table.patch
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: perl
|
||||
@ -317,6 +318,7 @@ Provides check_bacula support for Nagios.
|
||||
%patch3 -p0 -b .priv
|
||||
%patch4 -p1 -b .bat-build
|
||||
%patch5 -p1 -b .seg-fault
|
||||
%patch6 -p1 -b .update-postgresql-table
|
||||
|
||||
# Remove execution permissions from files we're packaging as docs later on
|
||||
find updatedb -type f | xargs chmod -x
|
||||
@ -906,6 +908,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-8
|
||||
- Fix: (#881146) syntax error in update_postgresql_tables_10_to_11.in
|
||||
|
||||
* Mon Feb 04 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-7
|
||||
- Fix (#905309) e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user