diff options
-rwxr-xr-x | osdfapp.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -28,4 +28,17 @@ mkdir -p $LOGS export OSDF_CONFIG_FILE=${1:-/opt/app/config/osdf_config.yaml} # this file may be passed by invoker [ ! -e "$OSDF_CONFIG_FILE" ] && unset OSDF_CONFIG_FILE +if [ -e /opt/app/ssl_cert/aaf_root_ca.cer ]; then + #assuming that this would be an ubuntu vm. + cp /opt/app/ssl_cert/aaf_root_ca.cer /usr/local/share/ca-certificates/aafcacert.crt + chmod 444 /usr/local/share/ca-certificates/aafcacert.crt + update-ca-certificates +fi + +if [ -e /etc/ssl/certs/aafcacert.pem ]; then + export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt +else + export REQUESTS_CA_BUNDLE=/opt/app/ssl_cert/aaf_root_ca.cer +fi + python osdfapp.py 2>$LOGS/err.log 1>$LOGS/out.log < /dev/null # running the app |