Linux Minimal Install - sed example to modify the config file

Here is an example of a sed statement to make the necessary modifications to a Chrystoki.conf file before using it with Docker containers.

sed -i -e 's#\./certs#/usr/local/luna/config/certs#g' -e 's#\./stc#/usr/local/luna/config/stc#g' -e 's#\./ppt#/usr/local/luna/config/ppt#g' -e 's#/usr/safenet/lunaclient/lib/libCryptoki2_64.so#/usr/local/luna/libs/64/libCryptoki2.so#g' -e 's#/usr/safenet/lunaclient/lib/libSoftToken.so#/usr/local/luna/libs/64/libSoftToken.so#' \ -e 's#/usr/safenet/lunaclient/lib/libCryptoki2.so#/usr/local/luna/libs/32/libCryptoki2.so#g' -e 's#/usr/safenet/lunaclient/bin/openssl.cnf#/usr/local/luna/openssl.cnf#g' $DOCKER_LUNA_ROOT/config/Chrystoki.conf || exit $rc