use absolute paths in post script
This commit is contained in:
parent
791d8575e6
commit
99bce927f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user