diff options
Diffstat (limited to 'packages/docker/src/main/docker/do-start.sh')
-rw-r--r-- | packages/docker/src/main/docker/do-start.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/docker/src/main/docker/do-start.sh b/packages/docker/src/main/docker/do-start.sh index dfb65e52..fa4cd6ab 100644 --- a/packages/docker/src/main/docker/do-start.sh +++ b/packages/docker/src/main/docker/do-start.sh @@ -32,9 +32,10 @@ else cp config/*.conf . fi - # wait for nexus up before installing, since installation - # needs to deploy some artifacts to the repo - ./wait-for-port.sh nexus 8081 + if [[ -f config/drools-preinstall.sh ]] ; then + echo "found preinstallation script" + bash config/drools-preinstall.sh + fi # remove broken symbolic links if any in data directory if [[ -d ${POLICY_HOME}/config ]]; then @@ -43,12 +44,11 @@ else fi apps=$(ls config/apps*.zip 2> /dev/null) - - echo "Applications found: ${apps}" - - if [[ -n ${apps} ]]; then - unzip -o ${apps} - fi + for app in $apps + do + echo "Application found: ${app}" + unzip -o ${app} + done echo "docker install at ${PWD}" @@ -61,7 +61,7 @@ else cp config/policy-keystore ${POLICY_HOME}/etc/ssl fi - if [[ -x config/drools-tweaks.sh ]] ; then + if [[ -f config/drools-tweaks.sh ]] ; then echo "Executing tweaks" # file may not be executable; running it as an # argument to bash avoids needing execute perms. |