Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > by-pkgid > f028d06a4ef6a13f48c0267a34e63105 > scriptlet

samba-swat-2.2.7a-8mdk.i586.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