Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > updates > by-pkgid > 84dec42a0c800b781475b8b7e4a90bfb > scriptlet

ntp-4.2.0-21.2.20060mdk.x86_64.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user ntp $1 ntp /etc/ntp /bin/false

PREUN

/bin/sh
/usr/share/rpm-helper/del-service ntp $1 ntpd

POSTIN

/bin/sh
# ntpd needs to be able to write to the ntp directory
# as well as into the drift file, but not step-tickers
# first installs already have the correct permissions
if [ "$1" = "2" ]; then
	chown ntp:ntp /etc/ntp
	[ -f /etc/ntp/drift ] && \
		chown ntp:ntp /etc/ntp/drift || :
	chown root:ntp /etc/ntp/keys
	chmod 0640 /etc/ntp/keys
fi
/usr/share/rpm-helper/add-service ntp $1 ntpd 
touch /etc/ntp/step-tickers

POSTUN

/bin/sh
/usr/share/rpm-helper/del-user ntp $1 ntp