Package shadow-utils: Скрипты

Pre install

1
2
3
4
5
6
7
8
9
if [ $1 -eq 2 ]; then
	OLD_VERSION="$(rpm -q --qf '%{EPOCH}:%{VERSION}-%{RELEASE}' shadow-utils)"
	[ -z "$OLD_VERSION" ] || RES="$(rpmevrcmp "$OLD_VERSION" 1:4.13-alt3)"
	if [ -n "$RES" ] && [ $RES -lt 0 ]; then
		cp -a /etc/login.defs /tmp/shadow-utils-update-save-old-login.defs
		# Ensure that old /etc/login.defs.rpmnew doesn't exist
		rm -f /etc/login.defs.rpmnew
	fi
fi