mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
355422a922
chroot (NanoBSD for example). So use truncate -s... instead of dd if=/dev/zero... to initialise the pdns DB. PR: pors/172268 Submitted by: n_hibma Feature safe: yes
10 lines
185 B
Bash
10 lines
185 B
Bash
#!/bin/sh
|
|
PDNSDB=/var/db/pdnsd
|
|
|
|
mkdir -p ${PDNSDB}
|
|
chown nobody ${PDNSDB}
|
|
chmod 755 ${PDNSDB}
|
|
truncate -s 4 ${PDNSDB}
|
|
chown nobody ${PDNSDB}/pdnsd.cache
|
|
chmod 640 ${PDNSDB}/pdnsd.cache
|