59a2a4 Run restorecon with "-i" not to report errors

Authored and Committed by Zdenek Pytela 2 years ago
    Run restorecon with "-i" not to report errors
    
    The %posttrans scriptlet contains explicit call to restorecon
    to restore context of files/directories which are not handled
    properly on updates. When a file or directory does not exist,
    an error is reported:
    
    /usr/sbin/restorecon: lstat(/etc/NetworkManager/dispatcher.d) failed: No such file or directory
    warning: %posttrans(selinux-policy-targeted-36.8-1.fc36.noarch) scriptlet failed, exit status 255
    
    Error in POSTTRANS scriptlet in rpm package selinux-policy-targeted
    
    With the "-i" switch, restorecon does not report an error.
    
    Resolves: rhbz#2082547
    
        
file modified
+7 -4