use absolute paths in post script

This commit is contained in:
kzak 2006-07-18 22:19:58 +00:00
parent 791d8575e6
commit 99bce927f8

View File

@ -510,7 +510,7 @@ rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
/bin/chmod 0644 /var/log/lastlog
# Fix the file context, do not use restorecon
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
chcon `matchpathcon -n /var/log/lastlog` /var/log/lastlog >/dev/null 2>&1
/usr/bin/chcon `/usr/sbin/matchpathcon -n /var/log/lastlog` /var/log/lastlog >/dev/null 2>&1
fi
%preun