Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d6a8c449b8db2d39ab1bc25f081d8e63 > scriptlet

bind-9.11.6-1.2.mga7.armv7hl.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