Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 85e0dd6b3c8da0f24277216d6a3a758f > scriptlet

bash-2.05b-8.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	grep -v /bin/bash /etc/shells | grep -v /bin/rbash > /etc/shells.new
	mv -f /etc/shells.new /etc/shells
fi

POSTIN

/bin/sh
if [ ! -f /etc/shells ]; then
	echo "/bin/bash" > /etc/shells
	echo "/bin/rbash" >> /etc/shells
else
	if ! grep -q '^/bin/bash$' /etc/shells; then
		echo "/bin/bash" >> /etc/shells
	fi
	if ! grep -q '^/bin/rbash$' /etc/shells; then
		echo "/bin/rbash" >> /etc/shells
	fi
fi

[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info >/dev/null 2>&1

POSTUN

/bin/sh
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c /usr/share/info >/dev/null 2>&1