Changeset 33af2b7 in mod_gnutls for test/softhsm.bash
- Timestamp:
- May 11, 2015, 6:28:20 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- 31caead
- Parents:
- e24eed68
- git-author:
- Thomas Klute <thomas2.klute@…> (05/11/15 18:12:28)
- git-committer:
- Thomas Klute <thomas2.klute@…> (05/11/15 18:28:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/softhsm.bash
re24eed68 r33af2b7 95 95 softhsm_lib="${softhsm_prefix}/lib/softhsm/libsofthsm.so" 96 96 97 # provided SOFTHSM_CONF always takes precedence, otherwise try to 98 # guess based on testdir 97 # fail if SOFTHSM_CONF is not set 99 98 if [ -z "${SOFTHSM_CONF}" ]; then 100 if [ -n "${testdir}" ]; then 101 export SOFTHSM_CONF="$(realpath ${testdir}/softhsm.conf)" 102 else 103 echo "ERROR: Neither SOFTHSM_CONF nor testdir set!" 2>&1 104 exit 1 105 fi 99 echo "ERROR: SOFTHSM_CONF not set!" 1>&2 100 exit 1 106 101 else 107 102 export SOFTHSM_CONF … … 116 111 cert_label="certificate" 117 112 118 # The Apache/SoftHSM configuration mixes up directories, so generate119 # softhsm.conf with an absolute path to the token database if a120 # template is present. Generating it on every run avoids problems if121 # the source tree was moved.122 if [ -e "${SOFTHSM_CONF}.in" ]; then123 cat "${SOFTHSM_CONF}.in" | sed "s,__DIR__,$(realpath $(dirname ${SOFTHSM_CONF}))," \124 >"${SOFTHSM_CONF}"125 fi126 127 113 if [ "${init}" = "true" ]; then 128 114 prepare_token "${token_label}" "${2}" "${3}"
Note: See TracChangeset
for help on using the changeset viewer.