#!/bin/sh # # Make $GLOBUS_INSTALL_PATH/share/certificates/ca-signing-policy.conf # and copy EVERYTHING there $GLOBUS_DEPLOY_PATH/share/certificates # (that is, repeat the multiple copy performed during deployment.) # # Files with names policy.*.conf in $GLOBUS_INSTALL_PATH/share/certificates # are used to generate the new ca-signing-policy.conf # # Andrew McNab Manchester HEP February 2001 # if [ -z "$GLOBUS_INSTALL_PATH" ] ; then echo '$GLOBUS_INSTALL_PATH is not defined. Exiting.' exit 1 fi mv -f $GLOBUS_INSTALL_PATH/share/certificates/ca-signing-policy.conf \ $GLOBUS_INSTALL_PATH/share/certificates/ca-signing-policy.conf.old date +"# Written on %c by $0" > \ $GLOBUS_INSTALL_PATH/share/certificates/ca-signing-policy.conf for i in $GLOBUS_INSTALL_PATH/share/certificates/ca-signing-policy.head \ $GLOBUS_INSTALL_PATH/share/certificates/policy.*.conf do cat $i >> $GLOBUS_INSTALL_PATH/share/certificates/ca-signing-policy.conf done chown globus.globus $GLOBUS_INSTALL_PATH/share/certificates/* if [ -z "$GLOBUS_DEPLOY_PATH" ] ; then echo '$GLOBUS_DEPLOY_PATH undefined.' echo '$GLOBUS_DEPLOY_PATH/share/certificates not modified.' exit 1 fi # Repeat multiple copy performed during original deployment cp -f $GLOBUS_INSTALL_PATH/share/certificates/* \ $GLOBUS_DEPLOY_PATH/share/certificates chown globus.globus $GLOBUS_DEPLOY_PATH/share/certificates/*