Package: bacula-director-pgsql Version: 5.0.3-1+b1 Severity: minor Tags: patch
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello, I have noted that the script /etc/bacula/scripts/delete_catalog_backup contains the default macro XXX_DBNAME_XXX: it has not replaced by the database value. The catalog dump is consequently never deleted after BackupCatalog job. I suggest in the patch attached to replace the macro in debian/bacula-director-pgsql.postinst; i've not tested the same fix to the mysql and sqlite backend, but i think it could be similar. - -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-12-generic (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages bacula-director-pgsql depends on: ii bacula-common 5.0.3-1+b1 ii bacula-common-pgsql 5.0.3-1+b1 ii bacula-director-common 5.0.3-1+b1 ii dbconfig-common 1.8.47+nmu1 ii debconf [debconf-2.0] 1.5.41 ii libc6 2.13-24 ii libgcc1 1:4.6.2-11 ii libpq5 9.1.2-4 ii libpython2.7 2.7.2-12 ii libssl1.0.0 1.0.0f-1 ii libstdc++6 4.6.2-11 ii libwrap0 7.6.q-22 ii postgresql-client 9.1+128 ii postgresql-client-8.4 [postgresql-client] 8.4.10-1 ii postgresql-client-9.1 [postgresql-client] 9.1.2-4 ii zlib1g 1:1.2.3.4.dfsg-3 Versions of packages bacula-director-pgsql recommends: ii postgresql-8.4 8.4.10-1 Versions of packages bacula-director-pgsql suggests: pn postgresql-contrib <none> pn postgresql-doc <none> - -- debconf information: bacula-director-pgsql/pgsql/method: unix socket bacula-director-pgsql/pgsql/authmethod-admin: ident bacula-director-pgsql/passwords-do-not-match: bacula-director-pgsql/pgsql/no-empty-passwords: bacula-director-pgsql/upgrade-backup: true bacula-director-pgsql/install-error: abort bacula-director-pgsql/internal/reconfiguring: false bacula-director-pgsql/db/app-user: bacula bacula-director-pgsql/dbconfig-reinstall: false bacula-director-pgsql/dbconfig-remove: bacula-director-pgsql/db/dbname: bacula bacula-director-pgsql/remote/host: bacula-director-pgsql/pgsql/admin-user: postgres bacula-director-pgsql/pgsql/authmethod-user: ident bacula-director-pgsql/upgrade-error: abort bacula-director-pgsql/internal/skip-preseed: false bacula-director-pgsql/purge: false bacula-director-pgsql/database-type: pgsql bacula-director-pgsql/remote/port: bacula-director-pgsql/pgsql/changeconf: false bacula-director-pgsql/remote/newhost: bacula-director-pgsql/pgsql/manualconf: * bacula-director-pgsql/dbconfig-install: true bacula-director-pgsql/dbconfig-upgrade: true bacula-director-pgsql/missing-db-package-error: abort bacula-director-pgsql/remove-error: abort -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJPHG6NAAoJEJmGUYuaqqCldAQP/3VnfPVBxqm7SUgExHFjEtf6 +xyR4HrxV68/3D6ijzN/tifAxgtArA2BzUAnFaL0/rivixy33jF8pKqYBgB/WVeM 6YzLnYNanKIf6gX5Stgn+gVmkTyv08PXMbv75a3IKvKptCoz8p1/LnWYXPBbF98O H+FmX37tcFYWI5F3JM4s5aSStQDHL8TAF6Z+Ex7b3nTeotHCj8HibuWYYGbEInaL gE8LjtbGqtm2CvR7QbGyE3sQpvyCsPvvc2iFA4Q7woqk9MIWOgZV+V8nS56FOb8M 6OUQ+1O0b7aqVJNbirEtU3YhKRigw5YTlZYfcswVPQEFAD3FgM/QjuRD2kNj6CLz RGURVvXTxzTdyalX9ePjOQpeZIji3RUqxTo08ZgyPCMLD7y4S6vsN48X/NE4usmI VqimFDfgxk/j70q8J96pJVc0iZy/xhtcdZ6NLbgX5imLBVE2XxPNOVXxwXiZAfzh qGihfpygy2mNEM/UyV0aiHvikLbZ3TvTiWaSZQZba9d3xiznBbPKU2sUJSZumJSO dHgQMKRNXabscn8vadtS3mwjxbrHo4Bm2CaSeTRq+arpQ8l9Ts0riDdhQ5zuQwNl myv83m3W3wbjCFUiQmSusbshXLpTM0prVld5eDdzW6OlKg5khfmQgfRz7iGUZnLf Ht4PjPAhazUE99TmtIoG =IENV -----END PGP SIGNATURE-----
diff -u bacula-5.0.3/debian/bacula-director-pgsql.postinst bacula-5.0.3/debian/bacula-director-pgsql.postinst --- bacula-5.0.3/debian/bacula-director-pgsql.postinst +++ bacula-5.0.3/debian/bacula-director-pgsql.postinst @@ -71,6 +71,7 @@ -e s~XXX_SDPASSWORD_XXX~$SDPASSWD~ \ -e s~XXX_FDPASSWORD_XXX~$FDPASSWD~ \ $DEFCONFIG/bacula-dir.conf > $TARGET + sed -e "s/XXX_DBNAME_XXX/$dbc_dbname/" /etc/bacula/scripts/delete_catalog_backup fi /bin/sh $POSTINST_COMMON