]> granicus.if.org Git - fcron/commitdiff
correction about running under a specific user/group
authorthib <thib>
Sun, 8 Oct 2000 10:23:09 +0000 (10:23 +0000)
committerthib <thib>
Sun, 8 Oct 2000 10:23:09 +0000 (10:23 +0000)
Makefile.in

index 80aa7ed3ad7b9cb64978fb9eaf49e2410e1cc899..1d579ea62d7d049fbc2e0b4abbfe1cb04b561e47 100644 (file)
@@ -4,7 +4,7 @@
 
 # @configure_input@
 
-# $Id: Makefile.in,v 1.40 2000-10-08 10:09:36 thib Exp $
+# $Id: Makefile.in,v 1.41 2000-10-08 10:23:09 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
@@ -93,11 +93,12 @@ install: all
        $(INSTALL) -g root -o root -m 755 -d $(DESTMAN)/man5
        $(INSTALL) -g root -o root -m 755 -d $(DESTMAN)/man8
        $(INSTALL) -g root -o root -m 755 -d $(DESTDOC)/fcron-$(VERSION)
-       $(INSTALL) -g GROUPNAME -o USERNAME -m 700 -d $(FCRONTABS)
+       $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 700 -d $(FCRONTABS)
+       chown $(USERNAME):$(GROUPNAME) $(FCRONTABS)/* $(ETC)/fcron.deny $(ETC)/fcron.allow
 
-       $(INSTALL) -g GROUPNAME -o USERNAME -m 110 -s fcron $(DESTSBIN)
-       $(INSTALL) -g GROUPNAME -o USERNAME -m 4111 -s fcrontab $(DESTBIN)
-       test -f $(ETC)/fcron.allow || test -f $(ETC)/fcron.deny || $(INSTALL) -m 700 -o root files/fcron.allow files/fcron.deny $(ETC)
+       $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 110 -s fcron $(DESTSBIN)
+       $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 4111 -s fcrontab $(DESTBIN)
+       test -f $(ETC)/fcron.allow || test -f $(ETC)/fcron.deny || $(INSTALL) -m 740 -o root -g $(GROUPNAME) files/fcron.allow files/fcron.deny $(ETC)
        $(INSTALL) -m 644 -o root doc/fcron.8 $(DESTMAN)/man8
        $(INSTALL) -m 644 -o root doc/fcrontab.1 $(DESTMAN)/man1
        $(INSTALL) -m 644 -o root doc/fcrontab.5 $(DESTMAN)/man5