zbyszek pushed to systemd (master). "Suppress warning from %post script when dir does not exist"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed May 20 05:35:29 UTC 2015


From 812fb10583f8b8221295251d8d371e2ad2150d68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek at in.waw.pl>
Date: Wed, 20 May 2015 00:24:27 -0400
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/<id>
 # 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 || :
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/systemd.git/commit/?h=master&id=812fb10583f8b8221295251d8d371e2ad2150d68


More information about the scm-commits mailing list