Sophie

Sophie

distrib > CentOS > 6 > i386 > by-pkgid > 8106e3fdcd78b69cbda3d533bde69fba > scriptlet

util-linux-ng-2.17.2-6.el6_0.1.i686.rpm

PREUN

/bin/sh
if [ "$1" = 0 ]; then
	/sbin/install-info --del /usr/share/info/ipc.info /usr/share/info/dir || :
fi
exit 0

POSTIN

/bin/sh
/sbin/install-info /usr/share/info/ipc.info /usr/share/info/dir || :
# only for minimal buildroots without /var/log
[ -d /var/log ] || /bin/mkdir -p /var/log
/bin/touch /var/log/lastlog
/bin/chown root:root /var/log/lastlog
/bin/chmod 0644 /var/log/lastlog
# Fix the file context, do not use restorecon
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
	SECXT=$( /usr/sbin/matchpathcon -n /var/log/lastlog 2> /dev/null )
	if [ -n "$SECXT" ]; then
		# Selinux enabled, but without policy? It's true for buildroots
		# without selinux stuff on host machine with enabled selinux.
		# We don't want to use any RPM dependence on selinux policy for
		# matchpathcon(2). SELinux policy should be optional.
		/usr/bin/chcon "$SECXT"  /var/log/lastlog >/dev/null 2>&1 || :
	fi
fi