37aee9
diff -Naur bacula-9.0.0.old/src/dird/bacula-dir.conf.in bacula-9.0.0/src/dird/bacula-dir.conf.in
37aee9
--- bacula-9.0.0.old/src/dird/bacula-dir.conf.in	2017-07-10 08:52:38.930834509 +0200
37aee9
+++ bacula-9.0.0/src/dird/bacula-dir.conf.in	2017-07-10 08:53:11.189444548 +0200
37aee9
@@ -18,7 +18,7 @@
37aee9
 Director {                            # define myself
37aee9
   Name = @basename@-dir
37aee9
   DIRport = @dir_port@                # where we listen for UA connections
37aee9
-  QueryFile = "@scriptdir@/query.sql"
37aee9
+  QueryFile = "@sysconfdir@/query.sql"
37aee9
   WorkingDirectory = "@working_dir@"
37aee9
   PidDirectory = "@piddir@"
37aee9
   Maximum Concurrent Jobs = 20
37aee9
diff -Naur bacula-9.0.0.old/src/dird/Makefile.in bacula-9.0.0/src/dird/Makefile.in
37aee9
--- bacula-9.0.0.old/src/dird/Makefile.in	2017-07-10 08:52:38.930834509 +0200
37aee9
+++ bacula-9.0.0/src/dird/Makefile.in	2017-07-10 08:54:24.363828341 +0200
37aee9
@@ -124,11 +124,11 @@
37aee9
 	   @if test "x${dir_group}" != "x" -a "x${DESTDIR}" = "x" ; then \
37aee9
 	      chgrp -f ${dir_group} ${DESTDIR}${sysconfdir}/$$destconf ; \
37aee9
 	   fi
37aee9
-	@if test -f ${DESTDIR}${scriptdir}/query.sql; then \
37aee9
+	@if test -f ${DESTDIR}${sysconfdir}/query.sql; then \
37aee9
 	   echo "  ==> Saving existing query.sql to query.sql.old"; \
37aee9
-	   $(MV) -f ${DESTDIR}${scriptdir}/query.sql ${DESTDIR}${scriptdir}/query.sql.old; \
37aee9
+	   $(MV) -f ${DESTDIR}${sysconfdir}/query.sql ${DESTDIR}${sysconfdir}/query.sql.old; \
37aee9
 	fi
37aee9
-	${INSTALL_DATA} query.sql ${DESTDIR}${scriptdir}/query.sql
37aee9
+	${INSTALL_DATA} query.sql ${DESTDIR}${sysconfdir}/query.sql
37aee9
 	@if test -f static-bacula-dir; then \
37aee9
 	   $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) static-bacula-dir $(DESTDIR)$(sbindir)/static-bacula-dir; \
37aee9
 	fi
37aee9
@@ -137,7 +137,7 @@
37aee9
 uninstall:
37aee9
 	(cd $(DESTDIR)$(sbindir); $(RMF) bacula-dir bdirjson)
37aee9
 	(cd $(DESTDIR)$(sysconfdir); $(RMF) bacula-dir.conf bacula-dir.conf.new)
37aee9
-	(cd $(DESTDIR)$(scriptdir); $(RMF) query.sql)
37aee9
+	(cd $(DESTDIR)$(sysconfdir); $(RMF) query.sql)
37aee9
 
37aee9
 
37aee9