From: thib Date: Sun, 11 May 2008 10:55:39 +0000 (+0000) Subject: fixed bug when upgrading: remove fcrontab.sig file (if any) before we change the... X-Git-Tag: ver3_0_5~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12a20988846380c17ba7031648a60de4ba71c9a2;p=fcron fixed bug when upgrading: remove fcrontab.sig file (if any) before we change the rights of the files to root:root 600, or it could not get removed by fcronsighup later on --- diff --git a/Makefile.in b/Makefile.in index cee45d1..b9654b2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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