diff --git a/selinux-policy.spec b/selinux-policy.spec index 1339984f..ca5127a4 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -583,7 +583,10 @@ exit 0 %posttrans targeted %checkConfigConsistency targeted -%{_sbindir}/restorecon -Ri /usr/lib/sysimage/rpm /var/lib/rpm /etc/NetworkManager/dispatcher.d +%{_sbindir}/restorecon -Ri /usr/lib/sysimage/rpm /var/lib/rpm +if [ -d /etc/NetworkManager/dispatcher.d ]; then +%{_sbindir}/restorecon -Ri /etc/NetworkManager/dispatcher.d +fi %postun targeted if [ $1 = 0 ]; then