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
# Run additional commands if present
source kolla_extend_start
. kolla_extend_start
fi
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
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
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
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
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
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)
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
# Loading Apache2 ENV variables
source /etc/apache2/envvars
. /etc/apache2/envvars
rm -rf /var/run/apache2/*
else
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)
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
# Loading Apache2 ENV variables
source /etc/apache2/envvars
. /etc/apache2/envvars
rm -rf /var/run/apache2/*
APACHE_DIR="apache2"
else

View File

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