Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 3b1e5b0fe8ff0095b128eaddb87688cf > scriptlet

ash-0.4.0-10.amd64.rpm

PREUN

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

POSTIN

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