Package nsd: Скрипты

Post install

1
2
3
4
5
if [ ! -r /etc/nsd/nsd_server.pem ]
then # set up TLS certificates for /usr/sbin/nsd-control to work
	/usr/sbin/nsd-control-setup
fi
/usr/sbin/post_service nsd
Pre install

/usr/sbin/groupadd -r -f _nsd
/usr/sbin/useradd -r -g _nsd -d /var/empty -s /sbin/nologin -n -c "Name Server Daemon" _nsd >/dev/null 2>&1 ||:
Pre uninstall

/usr/sbin/preun_service nsd