Commit 485227ee by Stéphane Graber

Fix lxc-net regression on missing restorecon

parent d14e1589
...@@ -79,8 +79,7 @@ start() { ...@@ -79,8 +79,7 @@ start() {
# can't write its pid into, so we restorecon it (to var_run_t) # can't write its pid into, so we restorecon it (to var_run_t)
if [ ! -d "${varrun}" ]; then if [ ! -d "${varrun}" ]; then
mkdir -p "${varrun}" mkdir -p "${varrun}"
which restorecon >/dev/null 2>&1 if which restorecon >/dev/null 2>&1; then
if [ $? = 0 ]; then
restorecon "${varrun}" restorecon "${varrun}"
fi fi
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