Skip to content

Commit

Permalink
neutron-base: remove bashisms
Browse files Browse the repository at this point in the history
Use [ instead of [[.

This will solve the following issue:

Change-Id: I1153a5146ca8b08dd1ad732b60d8d4bce8e060ab
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:/bin/sh: 1: [[: not found
INFO:kolla.common.utils.neutron-base:
  • Loading branch information
Christian Berendt committed Oct 12, 2018
1 parent 649094f commit 4410641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/neutron/neutron-base/Dockerfile.j2
Expand Up @@ -144,7 +144,7 @@ RUN ln -s neutron-base-source/* neutron \
&& if [ "$(ls /plugins)" ]; then \
{{ macros.install_pip(neutron_base_plugins_pip_packages) }} \
&& for neutron_plugins in $(ls /plugins); do \
if [[ -d "/plugins/$neutron_plugins/etc/neutron/rootwrap.d" ]]; then \
if [ -d "/plugins/$neutron_plugins/etc/neutron/rootwrap.d" ]; then \
cp /plugins/$neutron_plugins/etc/neutron/rootwrap.d/* /etc/neutron/rootwrap.d; \
fi; \
done; \
Expand Down

0 comments on commit 4410641

Please sign in to comment.