diff --git a/devenv/kollanode.yaml b/devenv/kollanode.yaml index 5f0a0a1a03..e213ef3c22 100644 --- a/devenv/kollanode.yaml +++ b/devenv/kollanode.yaml @@ -148,7 +148,7 @@ resources: user_data: str_replace: template: | - #!/bin/sh + #!/bin/bash # Latest packages yum clean all diff --git a/docker/ceilometer/ceilometer-alarm/start.sh b/docker/ceilometer/ceilometer-alarm/start.sh index 2096348c45..7470ae608f 100644 --- a/docker/ceilometer/ceilometer-alarm/start.sh +++ b/docker/ceilometer/ceilometer-alarm/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/ceilometer/ceilometer-api/start.sh b/docker/ceilometer/ceilometer-api/start.sh index bca5a1aaae..f081c9f84d 100644 --- a/docker/ceilometer/ceilometer-api/start.sh +++ b/docker/ceilometer/ceilometer-api/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/ceilometer/ceilometer-base/config-ceilometer.sh b/docker/ceilometer/ceilometer-base/config-ceilometer.sh index 9df45994ab..a2316dcd1d 100644 --- a/docker/ceilometer/ceilometer-base/config-ceilometer.sh +++ b/docker/ceilometer/ceilometer-base/config-ceilometer.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e . /opt/kolla/kolla-common.sh diff --git a/docker/ceilometer/ceilometer-central/start.sh b/docker/ceilometer/ceilometer-central/start.sh index 406245f2de..76f9a1fc2c 100644 --- a/docker/ceilometer/ceilometer-central/start.sh +++ b/docker/ceilometer/ceilometer-central/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash . /opt/kolla/kolla-common.sh . /opt/kolla/config-ceilometer.sh diff --git a/docker/ceilometer/ceilometer-collector/start.sh b/docker/ceilometer/ceilometer-collector/start.sh index 21de9d315e..1ed4c9e7d0 100644 --- a/docker/ceilometer/ceilometer-collector/start.sh +++ b/docker/ceilometer/ceilometer-collector/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/ceilometer/ceilometer-compute/start.sh b/docker/ceilometer/ceilometer-compute/start.sh index 84fe7ab1d8..f4fc30baee 100644 --- a/docker/ceilometer/ceilometer-compute/start.sh +++ b/docker/ceilometer/ceilometer-compute/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash . /opt/kolla/kolla-common.sh . /opt/kolla/config-ceilometer.sh diff --git a/docker/ceilometer/ceilometer-notification/start.sh b/docker/ceilometer/ceilometer-notification/start.sh index f2f84789e5..9397345497 100644 --- a/docker/ceilometer/ceilometer-notification/start.sh +++ b/docker/ceilometer/ceilometer-notification/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/glance/glance-api/check.sh b/docker/glance/glance-api/check.sh index 63c2654645..f97ef70f46 100755 --- a/docker/glance/glance-api/check.sh +++ b/docker/glance/glance-api/check.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/glance/glance-api/start.sh b/docker/glance/glance-api/start.sh index e5e327a5bf..c546333f44 100755 --- a/docker/glance/glance-api/start.sh +++ b/docker/glance/glance-api/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/glance/glance-base/config-glance.sh b/docker/glance/glance-base/config-glance.sh index 137815e709..aed044df57 100644 --- a/docker/glance/glance-base/config-glance.sh +++ b/docker/glance/glance-base/config-glance.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/glance/glance-registry/start.sh b/docker/glance/glance-registry/start.sh index 2337727e8b..5f590fb1cc 100755 --- a/docker/glance/glance-registry/start.sh +++ b/docker/glance/glance-registry/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/heat/heat-api/check.sh b/docker/heat/heat-api/check.sh index eab8ee59ba..ee03dc6d23 100755 --- a/docker/heat/heat-api/check.sh +++ b/docker/heat/heat-api/check.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/heat/heat-base/config-heat.sh b/docker/heat/heat-base/config-heat.sh index e0f3852ee5..ef2d0f9497 100755 --- a/docker/heat/heat-base/config-heat.sh +++ b/docker/heat/heat-base/config-heat.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/heat/heat-engine/start.sh b/docker/heat/heat-engine/start.sh index 8eda98f3d9..2dfc78e928 100755 --- a/docker/heat/heat-engine/start.sh +++ b/docker/heat/heat-engine/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash . /opt/kolla/kolla-common.sh . /opt/kolla/config-heat.sh diff --git a/docker/keystone/check.sh b/docker/keystone/check.sh index f967938616..ca48447848 100755 --- a/docker/keystone/check.sh +++ b/docker/keystone/check.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/keystone/start.sh b/docker/keystone/start.sh index cb76496f9c..408f250e0d 100755 --- a/docker/keystone/start.sh +++ b/docker/keystone/start.sh @@ -124,7 +124,7 @@ chmod -R o-rwx /etc/keystone/ssl # Initialize the Keystone DB echo "Initializing Keystone DB" if [ "${INIT_DB}" == "true" ] ; then - su -s /bin/sh -c "keystone-manage db_sync" keystone + su -s /bin/bash -c "keystone-manage db_sync" keystone fi # Start Keystone diff --git a/docker/mariadb-app/config-mysql.sh b/docker/mariadb-app/config-mysql.sh index 5819000c5e..0d39fa8703 100755 --- a/docker/mariadb-app/config-mysql.sh +++ b/docker/mariadb-app/config-mysql.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash . /opt/kolla/kolla-common.sh diff --git a/docker/mariadb-data/Dockerfile b/docker/mariadb-data/Dockerfile index a558313117..627884a680 100644 --- a/docker/mariadb-data/Dockerfile +++ b/docker/mariadb-data/Dockerfile @@ -5,4 +5,4 @@ VOLUME [ "/var/lib/mysql" ] # Command needed to start the data container. # Note: data containers do not need to be persistent. -CMD ["/bin/sh"] +CMD ["/bin/bash"] diff --git a/docker/neutron/neutron-agents/check-scripts/check-dhcp-agent.sh b/docker/neutron/neutron-agents/check-scripts/check-dhcp-agent.sh index 9c36f19961..7dda736efb 100755 --- a/docker/neutron/neutron-agents/check-scripts/check-dhcp-agent.sh +++ b/docker/neutron/neutron-agents/check-scripts/check-dhcp-agent.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/neutron/neutron-agents/check-scripts/check-l3-agent.sh b/docker/neutron/neutron-agents/check-scripts/check-l3-agent.sh index b79caf8ff9..d32c1e272f 100755 --- a/docker/neutron/neutron-agents/check-scripts/check-l3-agent.sh +++ b/docker/neutron/neutron-agents/check-scripts/check-l3-agent.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/neutron/neutron-agents/check-scripts/check-linuxbridge-agent.sh b/docker/neutron/neutron-agents/check-scripts/check-linuxbridge-agent.sh index 96b472490f..7de97df9d6 100755 --- a/docker/neutron/neutron-agents/check-scripts/check-linuxbridge-agent.sh +++ b/docker/neutron/neutron-agents/check-scripts/check-linuxbridge-agent.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/neutron/neutron-agents/check-scripts/check-metadata-agent.sh b/docker/neutron/neutron-agents/check-scripts/check-metadata-agent.sh index ba2474d48c..fd1c6812b4 100755 --- a/docker/neutron/neutron-agents/check-scripts/check-metadata-agent.sh +++ b/docker/neutron/neutron-agents/check-scripts/check-metadata-agent.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/neutron/neutron-base/config-neutron.sh b/docker/neutron/neutron-base/config-neutron.sh index 35ce787a40..f9107be76a 100644 --- a/docker/neutron/neutron-base/config-neutron.sh +++ b/docker/neutron/neutron-base/config-neutron.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/neutron/neutron-server/check.sh b/docker/neutron/neutron-server/check.sh index 2a44cda912..4e9aa623c6 100755 --- a/docker/neutron/neutron-server/check.sh +++ b/docker/neutron/neutron-server/check.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/neutron/neutron-server/start.sh b/docker/neutron/neutron-server/start.sh index d073289377..c1ead62809 100755 --- a/docker/neutron/neutron-server/start.sh +++ b/docker/neutron/neutron-server/start.sh @@ -93,6 +93,6 @@ if [[ ${MECHANISM_DRIVERS} =~ linuxbridge ]]; then "${NEUTRON_FLAT_NETWORK_NAME}:${NEUTRON_FLAT_NETWORK_INTERFACE}" fi -su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron +su -s /bin/bash -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron exec /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini diff --git a/docker/nova-base/config-nova.sh b/docker/nova-base/config-nova.sh index 00365f1ade..f8f7788e3b 100755 --- a/docker/nova-base/config-nova.sh +++ b/docker/nova-base/config-nova.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash . /opt/kolla/kolla-common.sh diff --git a/docker/nova-compute/nova-compute/config-nova-compute.sh b/docker/nova-compute/nova-compute/config-nova-compute.sh index 6235e5426e..cb1b01fa13 100755 --- a/docker/nova-compute/nova-compute/config-nova-compute.sh +++ b/docker/nova-compute/nova-compute/config-nova-compute.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash . /opt/kolla/kolla-common.sh . /opt/kolla/config-nova.sh diff --git a/docker/nova-compute/nova-compute/start.sh b/docker/nova-compute/nova-compute/start.sh index 47354f866b..bafe37add0 100755 --- a/docker/nova-compute/nova-compute/start.sh +++ b/docker/nova-compute/nova-compute/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/nova-compute/nova-libvirt/start.sh b/docker/nova-compute/nova-libvirt/start.sh index 04e5f97928..47a09399bd 100755 --- a/docker/nova-compute/nova-libvirt/start.sh +++ b/docker/nova-compute/nova-libvirt/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [[ $(cat /proc/cpuinfo | grep vmx) ]]; then modprobe kvm_intel diff --git a/docker/nova-compute/nova-network/config-nova-network.sh b/docker/nova-compute/nova-network/config-nova-network.sh index f8e036fdac..6976d3a208 100755 --- a/docker/nova-compute/nova-network/config-nova-network.sh +++ b/docker/nova-compute/nova-network/config-nova-network.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash . /opt/kolla/config-nova.sh diff --git a/docker/nova-compute/nova-network/start.sh b/docker/nova-compute/nova-network/start.sh index b5fc89f854..b39a18ceb0 100755 --- a/docker/nova-compute/nova-network/start.sh +++ b/docker/nova-compute/nova-network/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/nova-controller/nova-api/check.sh b/docker/nova-controller/nova-api/check.sh index a738b1002a..b250682d80 100755 --- a/docker/nova-controller/nova-api/check.sh +++ b/docker/nova-controller/nova-api/check.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash RES=0 diff --git a/docker/nova-controller/nova-api/start.sh b/docker/nova-controller/nova-api/start.sh index 5f615ed50f..aedea15f27 100755 --- a/docker/nova-controller/nova-api/start.sh +++ b/docker/nova-controller/nova-api/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/nova-controller/nova-conductor/start.sh b/docker/nova-controller/nova-conductor/start.sh index fa4bbd69a1..aa6a75ac3e 100755 --- a/docker/nova-controller/nova-conductor/start.sh +++ b/docker/nova-controller/nova-conductor/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/nova-controller/nova-scheduler/start.sh b/docker/nova-controller/nova-scheduler/start.sh index bd093d01cc..f386393dc1 100755 --- a/docker/nova-controller/nova-scheduler/start.sh +++ b/docker/nova-controller/nova-scheduler/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/rabbitmq/start.sh b/docker/rabbitmq/start.sh index 7ad7fbe75c..3284368f3b 100755 --- a/docker/rabbitmq/start.sh +++ b/docker/rabbitmq/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/docker/swift/swift-account/start.sh b/docker/swift/swift-account/start.sh index 884a247423..f634f6e54e 100644 --- a/docker/swift/swift-account/start.sh +++ b/docker/swift/swift-account/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash : ${SWIFT_DB_USER:=swift} : ${SWIFT_DB_NAME:=swift} diff --git a/docker/swift/swift-container/start.sh b/docker/swift/swift-container/start.sh index 42b426c74b..6e303872bf 100644 --- a/docker/swift/swift-container/start.sh +++ b/docker/swift/swift-container/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash : ${SWIFT_DB_USER:=swift} : ${SWIFT_DB_NAME:=swift} diff --git a/docker/swift/swift-object/start.sh b/docker/swift/swift-object/start.sh index 430a87b69e..8626e76785 100644 --- a/docker/swift/swift-object/start.sh +++ b/docker/swift/swift-object/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash : ${SWIFT_DB_USER:=swift} : ${SWIFT_DB_NAME:=swift} diff --git a/docker/swift/swift-proxy-server/start.sh b/docker/swift/swift-proxy-server/start.sh index dff824f462..3f387d187e 100644 --- a/docker/swift/swift-proxy-server/start.sh +++ b/docker/swift/swift-proxy-server/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash sh /opt/swift/config-swift.sh proxy diff --git a/docker/zaqar/start.sh b/docker/zaqar/start.sh index 04680c8f91..7620a18591 100755 --- a/docker/zaqar/start.sh +++ b/docker/zaqar/start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e diff --git a/tools/pre-commit-hook b/tools/pre-commit-hook index a136b97b46..a3c45b7571 100755 --- a/tools/pre-commit-hook +++ b/tools/pre-commit-hook @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash TOPLEVEL=$(git rev-parse --show-toplevel) RES=0 diff --git a/tools/update-build-links b/tools/update-build-links index ef1468485a..544cf66d14 100755 --- a/tools/update-build-links +++ b/tools/update-build-links @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") cd "$(dirname "$REAL_PATH")/.." diff --git a/tools/validate-all-json.sh b/tools/validate-all-json.sh index 87f1a9918c..e1d0b3c6a1 100755 --- a/tools/validate-all-json.sh +++ b/tools/validate-all-json.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") cd "$(dirname "$REAL_PATH")/.." diff --git a/tools/validate-all-maintainer.sh b/tools/validate-all-maintainer.sh index 7fc57422f4..e2fe26a605 100755 --- a/tools/validate-all-maintainer.sh +++ b/tools/validate-all-maintainer.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") cd "$(dirname "$REAL_PATH")/.." diff --git a/tools/validate-all-yaml.sh b/tools/validate-all-yaml.sh index bab2133b5f..bc9742b2e5 100755 --- a/tools/validate-all-yaml.sh +++ b/tools/validate-all-yaml.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") cd "$(dirname "$REAL_PATH")/.." diff --git a/tools/validate-maintainer.sh b/tools/validate-maintainer.sh index a620dda3e8..6c08e3d42e 100755 --- a/tools/validate-maintainer.sh +++ b/tools/validate-maintainer.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash MAINTAINER='MAINTAINER Kolla Project (https://launchpad.net/kolla)' RES=0