Fix lxc-net regression on missing restorecon

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2015-04-28 09:01:40 +02:00
parent 85c50991da
commit 47fcda9926
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -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