diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-02-02 13:36:32 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-02-02 13:36:32 +0000 |
commit | 2fa4a7148d125836b9f4ee470717e563022209f5 (patch) | |
tree | 26b5a03c995b348066460dea618eefce4ab7e3d3 | |
parent | a6522190b36401e494338ad4c91909b61168759d (diff) | |
parent | f3d7b978810cf28ad7a5b8298cc6a87f125b1eb5 (diff) |
Merge "Don't run yum_update.sh inside docker"
-rwxr-xr-x | extraconfig/tasks/yum_update.sh | 5 |
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 |