adduser --force-badname --system --home /nonexistent --group \
--no-create-home --quiet _dnsdist || true
- if [ "`stat -c '%U:%G' /etc/powerdns/dnsdist.conf`" = "root:root" ]; then
- chown root:_dnsdist /etc/powerdns/dnsdist.conf
+ if [ "`stat -c '%U:%G' /etc/dnsdist/dnsdist.conf`" = "root:root" ]; then
+ chown root:_dnsdist /etc/dnsdist/dnsdist.conf
# Make sure that dnsdist can read it; the default used to be 0600
- chmod g+r /etc/powerdns/dnsdist.conf
+ chmod g+r /etc/dnsdist/dnsdist.conf
fi
;;
override_dh_fixperms:
dh_fixperms
# these files often contain passwords. 640 as it is chowned to root:_dnsdist
+ touch debian/dnsdist/etc/dnsdist/dnsdist.conf
chmod 0640 debian/dnsdist/etc/dnsdist/dnsdist.conf
adduser --force-badname --system --home /nonexistent --group \
--no-create-home --quiet _dnsdist || true
- if [ "`stat -c '%U:%G' /etc/powerdns/dnsdist.conf`" = "root:root" ]; then
- chown root:_dnsdist /etc/powerdns/dnsdist.conf
+ if [ "`stat -c '%U:%G' /etc/dnsdist/dnsdist.conf`" = "root:root" ]; then
+ chown root:_dnsdist /etc/dnsdist/dnsdist.conf
# Make sure that dnsdist can read it; the default used to be 0600
- chmod g+r /etc/powerdns/dnsdist.conf
+ chmod g+r /etc/dnsdist/dnsdist.conf
fi
;;
override_dh_fixperms:
dh_fixperms
# these files often contain passwords. 640 as it is chowned to root:_dnsdist
+ touch debian/dnsdist/etc/dnsdist/dnsdist.conf
chmod 0640 debian/dnsdist/etc/dnsdist/dnsdist.conf
adduser --force-badname --system --home /nonexistent --group \
--no-create-home --quiet _dnsdist || true
- if [ "`stat -c '%U:%G' /etc/powerdns/dnsdist.conf`" = "root:root" ]; then
- chown root:_dnsdist /etc/powerdns/dnsdist.conf
+ if [ "`stat -c '%U:%G' /etc/dnsdist/dnsdist.conf`" = "root:root" ]; then
+ chown root:_dnsdist /etc/dnsdist/dnsdist.conf
# Make sure that dnsdist can read it; the default used to be 0600
- chmod g+r /etc/powerdns/dnsdist.conf
+ chmod g+r /etc/dnsdist/dnsdist.conf
fi
;;
override_dh_fixperms:
dh_fixperms
# these files often contain passwords. 640 as it is chowned to root:_dnsdist
+ touch debian/dnsdist/etc/dnsdist/dnsdist.conf
chmod 0640 debian/dnsdist/etc/dnsdist/dnsdist.conf