Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > 4ed06d8d547c74df1812f7543211e2db > scriptlet

avahi-0.6.30-3.fc15.i686.rpm

PREIN

/bin/sh
getent group avahi >/dev/null 2>&1 || groupadd \
        -r \
        -g 70 \
        avahi
getent passwd avahi >/dev/null 2>&1 || useradd \
        -r -l \
        -u 70 \
        -g avahi \
        -d /var/run/avahi-daemon \
        -s /sbin/nologin \
        -c "Avahi mDNS/DNS-SD Stack" \
        avahi
:;

PREUN

/bin/sh
if [ "$1" -eq 0 ]; then
        /bin/systemctl --no-reload disable avahi-daemon.service >/dev/null 2>&1 || :
        /bin/systemctl stop avahi-daemon.service >/dev/null 2>&1 || :
        /sbin/chkconfig --del avahi-daemon >/dev/null 2>&1 || :
fi

POSTIN

/bin/sh
/sbin/ldconfig || :
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
/sbin/chkconfig --add avahi-daemon >/dev/null 2>&1 || :
if [ "$1" -eq 1 ]; then
        /bin/systemctl enable avahi-daemon.service >/dev/null 2>&1 || :
        if [ -s /etc/localtime ]; then
                cp -cfp /etc/localtime /etc/avahi/etc/localtime || :
        fi
fi

POSTUN

/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/sbin/ldconfig || :

Triggers

avahi < 0.6.28-1

/bin/sh
if /sbin/chkconfig --level 5 avahi-daemon ; then
        /bin/systemctl --no-reload enable avahi-daemon.service >/dev/null 2>&1 || :
fi