aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-02-02 13:36:32 +0000
committerGerrit Code Review <review@openstack.org>2017-02-02 13:36:32 +0000
commit2fa4a7148d125836b9f4ee470717e563022209f5 (patch)
tree26b5a03c995b348066460dea618eefce4ab7e3d3
parenta6522190b36401e494338ad4c91909b61168759d (diff)
parentf3d7b978810cf28ad7a5b8298cc6a87f125b1eb5 (diff)
Merge "Don't run yum_update.sh inside docker"
-rwxr-xr-xextraconfig/tasks/yum_update.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/extraconfig/tasks/yum_update.sh b/extraconfig/tasks/yum_update.sh
index edcc9e8e..c66dd01f 100755
--- a/extraconfig/tasks/yum_update.sh
+++ b/extraconfig/tasks/yum_update.sh
@@ -10,6 +10,11 @@
echo "Started yum_update.sh on server $deploy_server_id at `date`"
echo -n "false" > $heat_outputs_path.update_managed_packages
+if [ -f /.dockerenv ]; then
+ echo "Not running due to running inside a container"
+ exit 0
+fi
+
if [[ -z "$update_identifier" ]]; then
echo "Not running due to unset update_identifier"
exit 0