From f3d7b978810cf28ad7a5b8298cc6a87f125b1eb5 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Wed, 14 Dec 2016 20:31:31 +0000 Subject: Don't run yum_update.sh inside docker For now, don't run anything in yum_update.sh when it is run from inside the heat-agents container. A mechanism for doing a yum update on the host can be worked out later, but for now a yum update should never be run inside a container. Change-Id: I73d37578f8b2dc9c3029b968b1ef74ef4894100a --- extraconfig/tasks/yum_update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extraconfig/tasks/yum_update.sh b/extraconfig/tasks/yum_update.sh index 8a88ee64..29843db2 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 -- cgit 1.2.3-korg