Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > media > main-backports > by-pkgid > 36599da540d932ee89fda96ec6f04ad2 > scriptlet

ntp-4.2.4-12mdv2008.0.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

POSTTRANS

/bin/sh
# if we have apparmor installed, reload if it's being used
if [ -x /sbin/apparmor_parser ]; then
        /sbin/service apparmor condreload
fi