Sophie

Sophie

distrib > CentOS > 5 > i386 > by-pkgid > 834f32047960ae72d2473dc40b6414af > scriptlet

sblim-cmpi-dns-1.0-51.el5.i386.rpm

PREIN

/bin/sh
# If upgrading, deregister old version
if [ $1 -gt 1 ]; then
  /usr/share/sblim-cmpi-dns/provider-register.sh -d \
	-t pegasus -r /usr/share/sblim-cmpi-dns/Linux_Dns.registration -m /usr/share/sblim-cmpi-dns/Linux_Dns.mof > /dev/null 2>&1 || :;
fi

PREUN

/bin/sh
# Deregister only if not upgrading 
if [ $1 -eq 0 ]; then
  /usr/share/sblim-cmpi-dns/provider-register.sh -d \
	-t pegasus -r /usr/share/sblim-cmpi-dns/Linux_Dns.registration -m /usr/share/sblim-cmpi-dns/Linux_Dns.mof > /dev/null 2>&1 || :;
fi

POSTIN

/bin/sh
/sbin/ldconfig
if [ $1 -ge 1 ]; then
# Register Schema and Provider - this is higly provider specific
/usr/share/sblim-cmpi-dns/provider-register.sh \
	-t pegasus -r /usr/share/sblim-cmpi-dns/Linux_Dns.registration -m /usr/share/sblim-cmpi-dns/Linux_Dns.mof > /dev/null 2>&1 || :;
fi;

POSTUN

/bin/sh
# Run ldconfig only if not upgrading
if [ $1 -eq 0 ]; then
  /sbin/ldconfig
fi


# Conditional definition of schema and registration files