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-Tag: Release-7.0.0~64 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=661fea9957d756b0fdc97a7d4737c5c9467305a3;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)