Change source with dot at extend_start files

Is a best practice in Unix/Linux scripts to use dots
instead of source command.
Using dots will avoid issues with non BASH shells

TrivialFix
Change-Id: Ie6480a1954f853f79faffa093452715ebd9f7d90
Signed-off-by: Eduardo Gonzalez <dabarren@gmail.com>
This commit is contained in:
Eduardo Gonzalez 2016-08-23 19:11:41 +02:00
parent 57d3eaf70c
commit 8e98e5f15e
18 changed files with 18 additions and 18 deletions

View File

@ -17,7 +17,7 @@ ARGS=""
if [[ ! "${!KOLLA_SKIP_EXTEND_START[@]}" ]]; then if [[ ! "${!KOLLA_SKIP_EXTEND_START[@]}" ]]; then
# Run additional commands if present # Run additional commands if present
source kolla_extend_start . kolla_extend_start
fi fi
echo "Running command: '${CMD}${ARGS:+ $ARGS}'" echo "Running command: '${CMD}${ARGS:+ $ARGS}'"

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/ceilometer) != "755" ]]; then
chmod 755 /var/log/kolla/ceilometer chmod 755 /var/log/kolla/ceilometer
fi fi
source /usr/local/bin/kolla_ceilometer_extend_start . /usr/local/bin/kolla_ceilometer_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/cinder) != "755" ]]; then
chmod 755 /var/log/kolla/cinder chmod 755 /var/log/kolla/cinder
fi fi
source /usr/local/bin/kolla_cinder_extend_start . /usr/local/bin/kolla_cinder_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/designate) != "755" ]]; then
chmod 755 /var/log/kolla/designate chmod 755 /var/log/kolla/designate
fi fi
source /usr/local/bin/kolla_designate_extend_start . /usr/local/bin/kolla_designate_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/glance) != "755" ]]; then
chmod 755 /var/log/kolla/glance chmod 755 /var/log/kolla/glance
fi fi
source /usr/local/bin/kolla_glance_extend_start . /usr/local/bin/kolla_glance_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/heat) != "755" ]]; then
chmod 755 /var/log/kolla/heat chmod 755 /var/log/kolla/heat
fi fi
source /usr/local/bin/kolla_heat_extend_start . /usr/local/bin/kolla_heat_extend_start

View File

@ -4,7 +4,7 @@
# results in the container not being able to restart. (bug #1489676, 1557036) # results in the container not being able to restart. (bug #1489676, 1557036)
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
# Loading Apache2 ENV variables # Loading Apache2 ENV variables
source /etc/apache2/envvars . /etc/apache2/envvars
rm -rf /var/run/apache2/* rm -rf /var/run/apache2/*
else else
rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd* rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*

View File

@ -15,7 +15,7 @@ function kolla_kubernetes {
# results in the container not being able to restart. (bug #1489676, 1557036) # results in the container not being able to restart. (bug #1489676, 1557036)
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
# Loading Apache2 ENV variables # Loading Apache2 ENV variables
source /etc/apache2/envvars . /etc/apache2/envvars
rm -rf /var/run/apache2/* rm -rf /var/run/apache2/*
APACHE_DIR="apache2" APACHE_DIR="apache2"
else else

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/magnum) != "755" ]]; then
chmod 755 /var/log/kolla/magnum chmod 755 /var/log/kolla/magnum
fi fi
source /usr/local/bin/kolla_magnum_extend_start . /usr/local/bin/kolla_magnum_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/manila) != "755" ]]; then
chmod 755 /var/log/kolla/manila chmod 755 /var/log/kolla/manila
fi fi
source /usr/local/bin/kolla_manila_extend_start . /usr/local/bin/kolla_manila_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/mistral) != "755" ]]; then
chmod 755 /var/log/kolla/mistral chmod 755 /var/log/kolla/mistral
fi fi
source /usr/local/bin/kolla_mistral_extend_start . /usr/local/bin/kolla_mistral_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/murano) != "755" ]]; then
chmod 755 /var/log/kolla/murano chmod 755 /var/log/kolla/murano
fi fi
source /usr/local/bin/kolla_murano_extend_start . /usr/local/bin/kolla_murano_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/neutron) != "755" ]]; then
chmod 755 /var/log/kolla/neutron chmod 755 /var/log/kolla/neutron
fi fi
source /usr/local/bin/kolla_neutron_extend_start . /usr/local/bin/kolla_neutron_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/nova) != "755" ]]; then
chmod 755 /var/log/kolla/nova chmod 755 /var/log/kolla/nova
fi fi
source /usr/local/bin/kolla_nova_extend_start . /usr/local/bin/kolla_nova_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/openvswitch) != "755" ]]; then
chmod 755 /var/log/kolla/openvswitch chmod 755 /var/log/kolla/openvswitch
fi fi
source /usr/local/bin/kolla_openvswitch_extend_start . /usr/local/bin/kolla_openvswitch_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/sahara) != "755" ]]; then
chmod 755 /var/log/kolla/sahara chmod 755 /var/log/kolla/sahara
fi fi
source /usr/local/bin/kolla_sahara_extend_start . /usr/local/bin/kolla_sahara_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/senlin) != "755" ]]; then
chmod 755 /var/log/kolla/senlin chmod 755 /var/log/kolla/senlin
fi fi
source /usr/local/bin/kolla_senlin_extend_start . /usr/local/bin/kolla_senlin_extend_start

View File

@ -7,4 +7,4 @@ if [[ $(stat -c %a /var/log/kolla/watcher) != "755" ]]; then
chmod 755 /var/log/kolla/watcher chmod 755 /var/log/kolla/watcher
fi fi
source /usr/local/bin/kolla_watcher_extend_start . /usr/local/bin/kolla_watcher_extend_start