Skip to content

Commit

Permalink
make install: catch up with the spec-file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-tikhonov committed May 2, 2024
1 parent cb001d5 commit b8550be
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5426,6 +5426,7 @@ SSSD_USER_DIRS = \
$(DESTDIR)$(keytabdir) \
$(DESTDIR)$(mcpath) \
$(DESTDIR)$(pipepath) \
$(DESTDIR)$(pipepath)/private \
$(DESTDIR)$(pubconfpath) \
$(DESTDIR)$(pubconfpath)/krb5.include.d \
$(DESTDIR)$(gpocachepath) \
Expand Down Expand Up @@ -5461,7 +5462,10 @@ installsssddirs::
$(NULL);
if SSSD_USER
-chown $(SSSD_USER):$(SSSD_USER) $(SSSD_USER_DIRS)
-chown $(SSSD_USER) $(DESTDIR)$(pipepath)/private
-chown -f $(SSSD_USER):$(SSSD_USER) $(DESTDIR)$(dbpath)/* || true
-chown -f $(SSSD_USER):$(SSSD_USER) $(DESTDIR)$(sssdconfdir)/sssd.conf || true
-chown -f -R $(SSSD_USER):$(SSSD_USER) $(DESTDIR)$(sssdconfdir)/conf.d || true
-chown -f $(SSSD_USER):$(SSSD_USER) $(DESTDIR)$(logpath)/*.log || true
endif
$(INSTALL) -d -m 0770 $(DESTDIR)$(dbpath) $(DESTDIR)$(logpath) \
$(DESTDIR)$(keytabdir) $(DESTDIR)$(gpocachepath) \
Expand Down Expand Up @@ -5602,7 +5606,11 @@ endif
if BUILD_KCM
$(MKDIR_P) $(DESTDIR)/$(sssdkcmdatadir)
$(MKDIR_P) $(DESTDIR)$(secdbpath)
$(INSTALL) -d -m 0700 $(DESTDIR)$(secdbpath)
if SSSD_USER
-chown $(SSSD_USER):$(SSSD_USER) $(DESTDIR)$(secdbpath)
-chown -f $(SSSD_USER):$(SSSD_USER) $(DESTDIR)$(secdbpath)/*.ldb || true
endif
$(INSTALL) -d -m 0770 $(DESTDIR)$(secdbpath)
endif

uninstall-hook:
Expand Down

0 comments on commit b8550be

Please sign in to comment.