Package ntpd: Scripts

Post install

/etc/chroot.d/ntpd.all
if [ $1 = 1 ]; then
        /sbin/chkconfig --add ntpd
fi
d=/var/lib/ntpd/etc/ntp
f=/etc/ntp
if [ -f "$f.RPMLOCK" -a -d "$f" -a ! -d "$d.RPMSAVE" ]; then
	/bin/mv "$d" "$d.RPMSAVE"
	/bin/rm -f "$f.RPMLOCK"
else
	/sbin/service ntpd condrestart ||:
fi
Pre install

1
2
3
4
5
6
7
/usr/sbin/groupadd -r -f ntpd
/usr/sbin/useradd -r -g ntpd -d /dev/null -s /dev/null -N ntpd >/dev/null 2>&1 ||:
f=/etc/ntp
if [ -d "$f" -a ! -L "$f" ]; then
	/bin/rm -rf "$f"
	/bin/touch "$f.RPMLOCK"
fi
Pre uninstall

/usr/sbin/preun_service ntpd