Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core > by-pkgid > 11491f500d9c808292f048a2d67c9fbf > scriptlet

scponly-4.8-alt1.i586.rpm

PREUN

/bin/sh
for f in \
    /usr/bin/scponly \
    /usr/sbin/scponlyc \
; do
    /bin/grep -q "^$f\$" /etc/shells || continue
    /bin/grep -v "^$f\$" /etc/shells > /etc/shells.uninstall_scponly
    /bin/cat /etc/shells.uninstall_scponly > /etc/shells
    /bin/rm -f /etc/shells.uninstall_scponly
done

POSTIN

/bin/sh
for f in \
    /usr/bin/scponly \
    /usr/sbin/scponlyc \
; do
    /bin/grep -q "^$f\$" /etc/shells && continue
    echo $f >> /etc/shells
done