https certs with aaf+pe containers compatibility
[policy/engine.git] / packages / docker / src / main / docker / do-start.sh
index 0179fad..c655ce9 100644 (file)
@@ -64,11 +64,16 @@ else
 
        . /opt/app/policy/etc/profile.d/env.sh
 
+       # override the policy keystore and truststore if present
+
        if [[ -f config/policy-keystore ]]; then
-           # install policy keystore
            cp config/policy-keystore $POLICY_HOME/etc/ssl
        fi
 
+       if [[ -f config/policy-truststore ]]; then
+           cp -f config/policy-trustore ${POLICY_HOME}/etc/ssl
+       fi
+
        if [[ -f config/$container-tweaks.sh ]] ; then
                # file may not be executable; running it as an
                # argument to bash avoids needing execute perms.