]> git.sur5r.net Git - bacula/bacula/commitdiff
Make sysconfdir belong to Bacula user/group and exclude others
authorKern Sibbald <kern@sibbald.com>
Sun, 9 Dec 2012 15:59:13 +0000 (16:59 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:05 +0000 (14:51 +0200)
bacula/Makefile.in

index 1abc14ae145ec8ffda61e50725968d4521b9a6e0..a308e147ac237155943bd6a00040ca7869d08249 100755 (executable)
@@ -94,6 +94,13 @@ libtool: Makefile $(LIBTOOL_DEPS)
 installdirs:
        $(MKDIR) $(DESTDIR)$(sbindir)
        $(MKDIR) $(DESTDIR)$(sysconfdir)
+       chmod 760 $(DESTDIR)$(sysconfdir)
+       -if test "x$(dir_user)" != "x" ; then \
+          chown $(dir_user) $(DESTDIR)$(sysconfdir); \
+       fi
+       -if test "x$(dir_group)" != "x" ; then \
+          chgrp $(dir_group) $(DESTDIR)$(sysconfdir); \
+       fi
        $(MKDIR) $(DESTDIR)$(scriptdir)
        $(MKDIR) $(DESTDIR)$(docdir)
        $(MKDIR) $(DESTDIR)$(archivedir)