Don't run yum_update.sh inside docker
authorSteve Baker <sbaker@redhat.com>
Wed, 14 Dec 2016 20:31:31 +0000 (20:31 +0000)
committerSteve Baker <sbaker@redhat.com>
Thu, 15 Dec 2016 21:33:55 +0000 (21:33 +0000)
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

index 8a88ee6..29843db 100755 (executable)
 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