From 47fcda9926100d3ffbd01d848943a7eaf78655ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Tue, 28 Apr 2015 09:01:40 +0200 Subject: [PATCH] Fix lxc-net regression on missing restorecon MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- config/init/common/lxc-net.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/init/common/lxc-net.in b/config/init/common/lxc-net.in index 9f50436eb..a310507e5 100644 --- a/config/init/common/lxc-net.in +++ b/config/init/common/lxc-net.in @@ -79,8 +79,7 @@ start() { # can't write its pid into, so we restorecon it (to var_run_t) if [ ! -d "${varrun}" ]; then mkdir -p "${varrun}" - which restorecon >/dev/null 2>&1 - if [ $? = 0 ]; then + if which restorecon >/dev/null 2>&1; then restorecon "${varrun}" fi fi -- 2.47.2