From: Kern Sibbald Date: Sun, 9 Dec 2012 15:59:13 +0000 (+0100) Subject: Make sysconfdir belong to Bacula user/group and exclude others X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dcb9cb1d7bc531eb8d6ad2b02f0d3294ab58ef82;p=bacula%2Fbacula Make sysconfdir belong to Bacula user/group and exclude others --- diff --git a/bacula/Makefile.in b/bacula/Makefile.in index 1abc14ae14..a308e147ac 100755 --- a/bacula/Makefile.in +++ b/bacula/Makefile.in @@ -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)