Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > abfb3fb9424529ec5ba1f80e64dd3fd7 > scriptlet

samba-swat-2.2.7a-10mdk.x86_64.rpm

POSTIN

/bin/sh
# Change only_from entry in /etc/xinetd.d/swat (localhost bug)
[[ `/bin/grep "localhost" /etc/xinetd.d/swat` ]] && {
echo "-- Setting swat xinetd only_from entry to 127.0.0.1"
perl -pi -e 's/localhost/127.0.0.1/' /etc/xinetd.d/swat
}
if [ -f /var/lock/subsys/xinetd ]; then
        service xinetd reload >/dev/null 2>&1 || :
fi
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi

POSTUN

/bin/sh
# Remove swat entry from xinetd
if [ -f /var/lock/subsys/xinetd ]; then
	service xinetd reload &>/dev/null || :
fi
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi