move var/cache/bind/data to server-dns, clean up dir chmod'ing

This commit is contained in:
Timo Aaltonen
2016-01-05 15:50:07 +02:00
parent 704ed62f6d
commit 7c646148bb
3 changed files with 6 additions and 6 deletions

2
debian/freeipa-server-dns.dirs vendored Normal file
View File

@@ -0,0 +1,2 @@
var/cache/bind/data

View File

@@ -1 +1,2 @@
etc/ipa/custodia
var/lib/ipa/backup

9
debian/rules vendored
View File

@@ -103,14 +103,11 @@ endif
override_dh_install:
dh_install --fail-missing
ifneq ($(ONLY_CLIENT), 1)
mkdir -m 770 -p $(CURDIR)/debian/freeipa-server/var/cache/bind/data
mkdir -m 700 -p $(CURDIR)/debian/freeipa-server/var/lib/ipa/backup
endif
override_dh_fixperms:
dh_fixperms -X var/cache/bind/data -X var/lib/ipa/backup
dh_fixperms
chmod 0700 $(CURDIR)/debian/freeipa-server/etc/ipa/custodia
chmod 0700 $(CURDIR)/debian/freeipa-server/var/lib/ipa/backup
chmod 0770 $(CURDIR)/debian/freeipa-server-dns/var/cache/bind/data
%:
dh $@ --with autoreconf,python2,systemd