From 812fb10583f8b8221295251d8d371e2ad2150d68 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: May 20 2015 04:24:27 +0000 Subject: Suppress warning from %post script when dir does not exist --- diff --git a/systemd.spec b/systemd.spec index 39f3a5c..9656798 100644 --- a/systemd.spec +++ b/systemd.spec @@ -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/ # 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 mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/random-seed >/dev/null 2>&1 || :