]> git.sur5r.net Git - bacula/bacula/commitdiff
- Modify install of make_catalog_backup and delete_catalog_backup so
authorKern Sibbald <kern@sibbald.com>
Tue, 19 Oct 2004 21:46:30 +0000 (21:46 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 19 Oct 2004 21:46:30 +0000 (21:46 +0000)
  that it will not overwrite any existing file.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1657 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/platforms/alpha/bacula-fd.in
bacula/platforms/openbsd/bacula-dir.in
bacula/platforms/openbsd/bacula-sd.in
bacula/src/cats/Makefile.in

index e68648b10c591b01ac75f8a251d479b54d2f29b2..f665da73fd9c46258c49596681dc6da3c05685a2 100644 (file)
@@ -1,5 +1,5 @@
                     Kern's ToDo List
-                     04 October 2004
+                     20 October 2004
 
 Major development:      
 Project                     Developer
@@ -1387,4 +1387,3 @@ Block Position: 0
 - Modify postgresql update script to remove bigint FilenameId           
   reference.
 - Kill daemons at levels in the teens rather than late.
-
index c7b5e28f05aafb735bcc42d5a02fc0b17d69b3eb..97fc2496136acb64adc4308f52ea5ad89e624341 100644 (file)
@@ -4,8 +4,7 @@
 #             the bacula File daemon.
 #
 # chkconfig: 2345 90 9
-# description: It comes by night and sucks the vital essence from your
-computers.
+# description: It comes by night and sucks the vital essence from your computers.
 #
 #  for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ 
 #
index 2ae3e5420b579cc0cdf3599d878f4ee96b7b5cec..e7e76b1618a2d83236be04e759a1e62d159e9df1 100755 (executable)
@@ -3,7 +3,7 @@
 # bacula       This shell script takes care of starting and stopping
 #             the bacula Director daemon
 #
-# chkconfig: 2345 20 9
+# chkconfig: 2345 90 9
 # description: It comes by night and sucks the vital essence from your computers.
 #
 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
index ac869998244b8c966a53fdef72ea18eb313609c8..fb55fb47cfd009917e53095da9bd389b640f8a95 100755 (executable)
@@ -3,7 +3,7 @@
 # bacula       This shell script takes care of starting and stopping
 #             the bacula Storage daemon.
 #
-# chkconfig: 2345 20 9
+# chkconfig: 2345 90 9
 # description: It comes by night and sucks the vital essence from your computers.
 #
 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
index 1301e8c94c93d15c6ba624af7087cbd6e7593425..3372a5172516194015b59220d5ff402005bb6929 100644 (file)
@@ -105,8 +105,24 @@ install:
        $(INSTALL_SCRIPT) drop_bacula_tables $(DESTDIR)$(scriptdir)/drop_bacula_tables
        $(INSTALL_SCRIPT) drop_bacula_database $(DESTDIR)$(scriptdir)/drop_bacula_database
 
-       $(INSTALL_SCRIPT) make_catalog_backup $(DESTDIR)$(scriptdir)/make_catalog_backup  
-       $(INSTALL_SCRIPT) delete_catalog_backup $(DESTDIR)$(scriptdir)/delete_catalog_backup  
+       @filename=make_catalog_backup; \
+          if  test -f ${DESTDIR}${scriptdir}/$$filename; then \
+             destname=$$filename.new; \
+             echo "  ==> Found existing $$filename, installing new file as $$destname"; \
+          else \
+             destname=$$filename; \
+          fi; \
+          echo "${INSTALL_SCRIPT} $$filename ${DESTDIR}${scriptdir}/$$destname"; \
+          ${INSTALL_SCRIPT} $$filename ${DESTDIR}${scriptdir}/$$destname
+       @filename=delete_catalog_backup; \
+          if  test -f ${DESTDIR}${scriptdir}/$$filename; then \
+             destname=$$filename.new; \
+             echo "  ==> Found existing $$filename, installing new file as $$destname"; \
+          else \
+             destname=$$filename; \
+          fi; \
+          echo "${INSTALL_SCRIPT} $$filename ${DESTDIR}${scriptdir}/$$destname"; \
+          ${INSTALL_SCRIPT} $$filename ${DESTDIR}${scriptdir}/$$destname
 
 uninstall:
        (cd $(DESTDIR)$(scriptdir); $(RMF) create_@DB_NAME@_database)