Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > f4f76debe0aec231791b90b9f87e69d3 > scriptlet

ntp-4.2.4-4mdv2007.1.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
        /bin/chown ntp:ntp /etc/ntp
        [ -f /etc/ntp/drift ] && \
                /bin/chown ntp:ntp /etc/ntp/drift || :
        /bin/chown root:ntp /etc/ntp/keys
        /bin/chmod 0640 /etc/ntp/keys
fi
/usr/share/rpm-helper/add-service ntp $1 ntpd 
/bin/touch /etc/ntp/step-tickers

POSTUN

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