Suppress warning from %post script when dir does not exist

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-05-20 00:24:27 -04:00
parent 75a820ceb0
commit 812fb10583

View File

@ -624,7 +624,7 @@ setfacl -Rnm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal/ >/dev
# Remove duplicate ACL entries on /var/log/journal/<id> # Remove duplicate ACL entries on /var/log/journal/<id>
# This should be removed before before F22 or F23 release # This should be removed before before F22 or F23 release
getfacl -p /var/log/journal/`cat /etc/machine-id`|grep -v '^#'|sort -u|setfacl --set-file=- /var/log/journal/`cat /etc/machine-id` >/dev/null 2>&1 || : getfacl -p /var/log/journal/`cat /etc/machine-id` 2>/dev/null|grep -v '^#'|sort -u|setfacl --set-file=- /var/log/journal/`cat /etc/machine-id` >/dev/null 2>&1 || :
# Move old stuff around in /var/lib # Move old stuff around in /var/lib
mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/random-seed >/dev/null 2>&1 || : mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/random-seed >/dev/null 2>&1 || :