summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-14 00:05:03 +0000
committerGerrit Code Review <review@openstack.org>2017-03-14 00:05:03 +0000
commitbec748f437970b6aea045abb99f7a626d337bef0 (patch)
tree92f7557dd664a608d8921da7e639a8d2706ca74e /devstack
parent8e14f21c1543ef1ff05f22fdb1cd6ace5c955409 (diff)
parentaec3663604e1767e6549a4cb830c7d3ae37f2668 (diff)
downloadironic-bec748f437970b6aea045abb99f7a626d337bef0.tar.gz
Merge "Address a shell syntax mistake"
Diffstat (limited to 'devstack')
-rw-r--r--devstack/lib/ironic4
1 files changed, 2 insertions, 2 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index 11754d4d1..e1b97568c 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -826,8 +826,8 @@ function configure_ironic_dirs {
fi
# Create the logs directory when saving the deploy logs to the filesystem
- if [ "$IRONIC_DEPLOY_LOGS_STORAGE_BACKEND" = "local"] && [ "$IRONIC_DEPLOY_LOGS_COLLECT" != "never" ]; then
- sudo install -d -o $STACK_USER $IRONIC_DEPLOY_LOGS_LOCAL_PATH
+ if [[ "$IRONIC_DEPLOY_LOGS_STORAGE_BACKEND" == "local" && "$IRONIC_DEPLOY_LOGS_COLLECT" != "never" ]]; then
+ install -d -o $STACK_USER $IRONIC_DEPLOY_LOGS_LOCAL_PATH
fi
}