cook policy-keystore into pe image
[policy/engine.git] / packages / docker / src / main / docker / do-start.sh
index 47b835a..0179fad 100644 (file)
@@ -64,9 +64,10 @@ else
 
        . /opt/app/policy/etc/profile.d/env.sh
 
-       # install policy keystore
-       mkdir -p $POLICY_HOME/etc/ssl
-       cp config/policy-keystore $POLICY_HOME/etc/ssl
+       if [[ -f config/policy-keystore ]]; then
+           # install policy keystore
+           cp config/policy-keystore $POLICY_HOME/etc/ssl
+       fi
 
        if [[ -f config/$container-tweaks.sh ]] ; then
                # file may not be executable; running it as an