Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > a474f96b99cf73bc156a81545dc420b6 > scriptlet

bash-static-3.2.15-1.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	umask 022
	grep -v /bin/bash.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/bash.static" > /etc/shells
else
	if ! grep -q '^/bin/bash.static$' /etc/shells; then
		echo "/bin/bash.static" >> /etc/shells
	fi
fi