<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.4.4">
</HEAD>
<BODY>
Hi John,<BR>
<BR>
The reason why the execute bit is not set is because the DB_NAME variable is empty.<BR>
After filling this with the correct value you have to set the execute bit.<BR>
<BR>
Greetings,<BR>
Willem<BR>
<BR>
On Sat, 2013-08-03 at 14:26 +0200, John Naggets wrote:
<BLOCKQUOTE TYPE=CITE>
    Package: bacula-director-pgsql<BR>
    Version: 5.2.6+dfsg-9<BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    The shell script delete_catalog_backup is missing the execute bit, as you can see here (ls output):<BR>
    <BR>
    -rw------- 1 root root 104 Aug  2 11:07 /etc/bacula/scripts/delete_catalog_backup<BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    As such one gets the following error when backuping the catalog:<BR>
    <BR>
    03-Aug 01:05 backup-dir JobId 3: shell command: run AfterJob "/etc/bacula/scripts/delete_catalog_backup"<BR>
    03-Aug 01:05 backup-dir JobId 3: Error: Runscript: AfterJob returned non-zero status=200. ERR=Permission denied<BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    And the SQL catalog file does not get delted as it should.<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
pkg-bacula-devel mailing list
<A HREF="mailto:pkg-bacula-devel@lists.alioth.debian.org">pkg-bacula-devel@lists.alioth.debian.org</A>
<A HREF="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-bacula-devel">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-bacula-devel</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>