configure)
addgroup --system pdns
adduser --system --home /var/spool/powerdns --shell /bin/false --ingroup pdns --disabled-password --disabled-login --gecos "PowerDNS" pdns
+ if [ "`stat -c '%U:%G' /etc/powerdns/recursor.conf`" = "root:root" ]; then
+ chown root:pdns /etc/powerdns/recursor.conf
+ # Make sure that pdns can read it; the default used to be 0600
+ chmod g+r /etc/powerdns/recursor.conf
+ fi
;;
*)
override_dh_gencontrol:
dh_gencontrol -- $(SUBSTVARS)
+
+override_dh_fixperms:
+ dh_fixperms
+ # these files often contain passwords. 640 as it is chowned to root:pdns
+ chmod 0640 debian/pdns-server/etc/powerdns/recursor.conf
configure)
addgroup --system pdns
adduser --system --home /var/spool/powerdns --shell /bin/false --ingroup pdns --disabled-password --disabled-login --gecos "PowerDNS" pdns
+ if [ "`stat -c '%U:%G' /etc/powerdns/recursor.conf`" = "root:root" ]; then
+ chown root:pdns /etc/powerdns/recursor.conf
+ # Make sure that pdns can read it; the default used to be 0600
+ chmod g+r /etc/powerdns/recursor.conf
+ fi
;;
*)
override_dh_gencontrol:
dh_gencontrol -- $(SUBSTVARS)
+
+override_dh_fixperms:
+ dh_fixperms
+ # these files often contain passwords. 640 as it is chowned to root:pdns
+ chmod 0640 debian/pdns-server/etc/powerdns/recursor.conf
configure)
addgroup --system pdns
adduser --system --home /var/spool/powerdns --shell /bin/false --ingroup pdns --disabled-password --disabled-login --gecos "PowerDNS" pdns
+ if [ "`stat -c '%U:%G' /etc/powerdns/recursor.conf`" = "root:root" ]; then
+ chown root:pdns /etc/powerdns/recursor.conf
+ # Make sure that pdns can read it; the default used to be 0600
+ chmod g+r /etc/powerdns/recursor.conf
+ fi
;;
*)
override_dh_gencontrol:
dh_gencontrol -- $(SUBSTVARS)
+
+override_dh_fixperms:
+ dh_fixperms
+ # these files often contain passwords. 640 as it is chowned to root:pdns
+ chmod 0640 debian/pdns-server/etc/powerdns/recursor.conf