Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 5c442f9b5d0491eceba6fc57ce63b077 > scriptlet

ash-static-0.4.0-10.amd64.rpm

PREUN

/bin/sh
if [ "$1" = 0 ]; then
	umask 022
	grep -v '^/bin/ash\.static$' /etc/shells > /etc/shells.new
	mv -f /etc/shells.new /etc/shells
fi

POSTIN

/bin/sh
umask 022
if [ ! -f /etc/shells ]; then
	echo "/bin/ash.static" >> /etc/shells
else
	if ! grep -q '^/bin/ash.static$' /etc/shells ; then
		echo "/bin/ash.static" >> /etc/shells
	fi
fi