Change the default shell to bash

Unify the shell to bash in all Kolla scripts.

Change-Id: Ib9591b2f8f344eb88455c5e9b7ecf2164fb5960a
Implements: blueprint use-bash-shell
This commit is contained in:
Chen Zhiwei 2015-04-27 11:59:55 +08:00
parent 8781dc570b
commit 76c1fe6371
48 changed files with 48 additions and 48 deletions

View File

@ -148,7 +148,7 @@ resources:
user_data: user_data:
str_replace: str_replace:
template: | template: |
#!/bin/sh #!/bin/bash
# Latest packages # Latest packages
yum clean all yum clean all

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e
. /opt/kolla/kolla-common.sh . /opt/kolla/kolla-common.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
. /opt/kolla/kolla-common.sh . /opt/kolla/kolla-common.sh
. /opt/kolla/config-ceilometer.sh . /opt/kolla/config-ceilometer.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
. /opt/kolla/kolla-common.sh . /opt/kolla/kolla-common.sh
. /opt/kolla/config-ceilometer.sh . /opt/kolla/config-ceilometer.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
. /opt/kolla/kolla-common.sh . /opt/kolla/kolla-common.sh
. /opt/kolla/config-heat.sh . /opt/kolla/config-heat.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -124,7 +124,7 @@ chmod -R o-rwx /etc/keystone/ssl
# Initialize the Keystone DB # Initialize the Keystone DB
echo "Initializing Keystone DB" echo "Initializing Keystone DB"
if [ "${INIT_DB}" == "true" ] ; then 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 fi
# Start Keystone # Start Keystone

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
. /opt/kolla/kolla-common.sh . /opt/kolla/kolla-common.sh

View File

@ -5,4 +5,4 @@ VOLUME [ "/var/lib/mysql" ]
# Command needed to start the data container. # Command needed to start the data container.
# Note: data containers do not need to be persistent. # Note: data containers do not need to be persistent.
CMD ["/bin/sh"] CMD ["/bin/bash"]

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -93,6 +93,6 @@ if [[ ${MECHANISM_DRIVERS} =~ linuxbridge ]]; then
"${NEUTRON_FLAT_NETWORK_NAME}:${NEUTRON_FLAT_NETWORK_INTERFACE}" "${NEUTRON_FLAT_NETWORK_NAME}:${NEUTRON_FLAT_NETWORK_INTERFACE}"
fi 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 exec /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
. /opt/kolla/kolla-common.sh . /opt/kolla/kolla-common.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
. /opt/kolla/kolla-common.sh . /opt/kolla/kolla-common.sh
. /opt/kolla/config-nova.sh . /opt/kolla/config-nova.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
if [[ $(cat /proc/cpuinfo | grep vmx) ]]; then if [[ $(cat /proc/cpuinfo | grep vmx) ]]; then
modprobe kvm_intel modprobe kvm_intel

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
. /opt/kolla/config-nova.sh . /opt/kolla/config-nova.sh

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
: ${SWIFT_DB_USER:=swift} : ${SWIFT_DB_USER:=swift}
: ${SWIFT_DB_NAME:=swift} : ${SWIFT_DB_NAME:=swift}

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
: ${SWIFT_DB_USER:=swift} : ${SWIFT_DB_USER:=swift}
: ${SWIFT_DB_NAME:=swift} : ${SWIFT_DB_NAME:=swift}

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
: ${SWIFT_DB_USER:=swift} : ${SWIFT_DB_USER:=swift}
: ${SWIFT_DB_NAME:=swift} : ${SWIFT_DB_NAME:=swift}

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
sh /opt/swift/config-swift.sh proxy sh /opt/swift/config-swift.sh proxy

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
set -e set -e

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
TOPLEVEL=$(git rev-parse --show-toplevel) TOPLEVEL=$(git rev-parse --show-toplevel)
RES=0 RES=0

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.." cd "$(dirname "$REAL_PATH")/.."

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.." cd "$(dirname "$REAL_PATH")/.."

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.." cd "$(dirname "$REAL_PATH")/.."

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.." cd "$(dirname "$REAL_PATH")/.."

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
MAINTAINER='MAINTAINER Kolla Project (https://launchpad.net/kolla)' MAINTAINER='MAINTAINER Kolla Project (https://launchpad.net/kolla)'
RES=0 RES=0