summaryrefslogtreecommitdiffstats
path: root/policy-drools/docker-install.sh
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-09-26 14:57:27 -0500
committerJorge Hernandez <jh1730@att.com>2017-09-26 14:57:27 -0500
commit3700dbd91de48e9adf52536b44c38ed422549784 (patch)
tree3fdea4ba9835b6f85ebfd25426b005414b28f239 /policy-drools/docker-install.sh
parente7046a057f3708a3d17c0d1ffea75528ec69eaf7 (diff)
chmod + script execution issues in docker
Change-Id: I96f942cab9d220418be6fe622c86b4bb3eb4e6c9 Issue-ID: POLICY-162 Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'policy-drools/docker-install.sh')
-rw-r--r--policy-drools/docker-install.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/policy-drools/docker-install.sh b/policy-drools/docker-install.sh
index de2d7070..a1794543 100644
--- a/policy-drools/docker-install.sh
+++ b/policy-drools/docker-install.sh
@@ -881,7 +881,17 @@ function do_install()
# base drools installation from the drools apps
# is executed here
+ # sync and sleep is used to make sure file system
+ # syncronization happens. When running within docker back
+ # to back operations on the same file such as
+ # chmod and then script execution, it has been
+ # seen that the script execution returns "text busy"
+ # OS error.
+
chmod +x ./apps-installer
+
+ sync
+ sleep 5s
./apps-installer
fi