Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 01286dc2f15d52f55ccde04e9dda31d8 > scriptlet

bind-9.11.6-1.mga7.i586.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user bind $1 named /var/named /bin/false

PREUN

/bin/sh
/usr/share/rpm-helper/del-service bind $1 named

POSTIN

/bin/sh
/usr/bin/systemd-tmpfiles --create named.conf 

/usr/share/rpm-helper/add-service bind $1 named

POSTUN

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

Triggers

bind < 9.11.5.P1-2.mga7

/bin/sh
# handle migration from previous setup after uninstallation of previous release
# so as to catch modified configuration files saved as .rpmsave
for f in named.conf trusted_networks_acl.conf logging.conf rndc.conf rndc.key; do
    if [ -f /var/named/chroot/etc/$f.rpmsave ]; then
        if [ -f /etc/$f ]; then
            mv /etc/$f /etc/$f.rpmnew
        fi
        mv /var/named/chroot/etc/$f.rpmsave /etc/$f;
    fi
done

if [ -d /var/named/chroot/var/named/master ]; then
    mv /var/named/chroot/var/named/master /var/named
fi

if [ -d /var/named/chroot/var/named/reverse ]; then
    mv /var/named/chroot/var/named/reverse /var/named
fi

bind < 9.9.2

/bin/sh
# stop the service so as to be able to umount old chroot
systemctl condstop named.service