]> granicus.if.org Git - fcron/commitdiff
fixed bug when upgrading: remove fcrontab.sig file (if any) before we change the...
authorthib <thib>
Sun, 11 May 2008 10:55:39 +0000 (10:55 +0000)
committerthib <thib>
Sun, 11 May 2008 10:55:39 +0000 (10:55 +0000)
Makefile.in

index cee45d1dde7e4ace8b820bc0a64b1c91cbfb5b37..b9654b28ba44413d9a2a8d29d0fcfcbe17e6e13c 100644 (file)
@@ -4,7 +4,7 @@
 
 # @configure_input@
 
-# $Id: Makefile.in,v 1.108 2007-10-14 14:57:29 thib Exp $
+# $Id: Makefile.in,v 1.109 2008-05-11 10:55:39 thib Exp $
 
 # The following should not be edited manually (use configure options)
 # If you must do it, BEWARE : some of the following is also defined
@@ -208,6 +208,8 @@ endif
 
        find $(DESTDIR)$(FCRONTABS) -type f \( -name "*.orig" -a ! -name "$(ROOTNAME).orig" -a ! -name "$(SYSFCRONTAB).orig" \) -exec chown $(USERNAME) {} \; -exec chgrp $(GROUPNAME) {} \; -exec chmod 640 {} \;
        find $(DESTDIR)$(FCRONTABS) -type f \( -name "$(ROOTNAME).orig" -o -name "$(SYSFCRONTAB).orig" \) -exec chown $(ROOTNAME) {} \; -exec chgrp $(GROUPNAME) {} \; -exec chmod 600 {} \;
+       # First, remove the potential fcrontab.sig, or it could not get removed by fcronsighup if it becomes root:root 600
+       rm -f $(DESTDIR)$(FCRONTABS)/fcrontab.sig
        find $(DESTDIR)$(FCRONTABS) -type f ! -name "*.orig" -exec chown $(ROOTNAME) {} \; -exec chgrp $(ROOTGROUP) {} \; -exec chmod 600 {} \;
 
        make -C doc perms