From 6566ace236d5fdb10035a1598626274000b04727 Mon Sep 17 00:00:00 2001 From: Surya Prakash Singh Date: Mon, 28 Aug 2017 11:01:24 +0530 Subject: [PATCH] Changed as per the standard convention set to use "." When we have to source a script file use . instead of source For Reference follow below link: https://docs.openstack.org/contributor-guide/writing-style/code-conventions Change-Id: Icc6a692d37e8a5bc1146d803c873505cbf6cd03f --- docker/gnocchi/gnocchi-api/extend_start.sh | 2 +- docker/nova/nova-placement-api/extend_start.sh | 2 +- docker/panko/panko-api/extend_start.sh | 2 +- tools/setup_Debian.sh | 2 +- tools/setup_gate.sh | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/gnocchi/gnocchi-api/extend_start.sh b/docker/gnocchi/gnocchi-api/extend_start.sh index 54dbe2b147..e67dff0dff 100644 --- a/docker/gnocchi/gnocchi-api/extend_start.sh +++ b/docker/gnocchi/gnocchi-api/extend_start.sh @@ -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* diff --git a/docker/nova/nova-placement-api/extend_start.sh b/docker/nova/nova-placement-api/extend_start.sh index 904db04b27..4596bf6a1d 100644 --- a/docker/nova/nova-placement-api/extend_start.sh +++ b/docker/nova/nova-placement-api/extend_start.sh @@ -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* diff --git a/docker/panko/panko-api/extend_start.sh b/docker/panko/panko-api/extend_start.sh index cf3cc3bd46..423a8e2b85 100644 --- a/docker/panko/panko-api/extend_start.sh +++ b/docker/panko/panko-api/extend_start.sh @@ -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* diff --git a/tools/setup_Debian.sh b/tools/setup_Debian.sh index 76e5dc3b61..f217d5bc25 100755 --- a/tools/setup_Debian.sh +++ b/tools/setup_Debian.sh @@ -35,7 +35,7 @@ function setup_disk { # (SamYaple)TODO: Remove the path overriding export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -source /etc/lsb-release +. /etc/lsb-release # Setup Docker repo and add signing key sudo apt-get update diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index 5635be99ad..454544029b 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -6,8 +6,8 @@ set -o errexit # Enable unbuffered output for Ansible in Jenkins. export PYTHONUNBUFFERED=1 -source /etc/nodepool/provider -source /etc/ci/mirror_info.sh +. /etc/nodepool/provider +. /etc/ci/mirror_info.sh # Just for mandre :) if [[ ! -f /etc/sudoers.d/jenkins ]]; then