Commit 485227ee by Stéphane Graber

Fix lxc-net regression on missing restorecon

parent d14e1589
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment