Sophie

Sophie

distrib > Momonga > 7 > x86_64 > media > updates > by-pkgid > 8882d702a52bbc52266b154edef8f82a > scriptlet

samba-3.5.10-1m.mo7.x86_64.rpm

PREUN

/bin/sh
if [ $1 = 0 ] ; then
    /sbin/service smb stop >/dev/null 2>&1 || :
    /sbin/service nmb stop >/dev/null 2>&1 || :
    /sbin/chkconfig --del smb
    /sbin/chkconfig --del nmb
fi
exit 0

#%postun

POSTIN

/bin/sh
/sbin/chkconfig --add smb
/sbin/chkconfig --add nmb
if [ "$1" -ge "1" ]; then
    /sbin/service smb condrestart >/dev/null 2>&1 || :
    /sbin/service nmb condrestart >/dev/null 2>&1 || :
fi
exit 0