From 478e1993e0760ad83668243111be155b3e9e7050 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Sun, 27 Mar 2011 19:52:49 -0700 Subject: Initial content; missing some mailcert.sh support --- configure.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 configure.sh (limited to 'configure.sh') diff --git a/configure.sh b/configure.sh new file mode 100644 index 0000000..e441aa0 --- /dev/null +++ b/configure.sh @@ -0,0 +1,30 @@ +#!/bin/echo This is intended to be run from within scripts as this as . + +export CA="omgca" +export EXPIRE="3650" +export C="US" +export ST="Oregon" +export L="Portland" +export O="Rayhawk Foundation For World Domination" +export OU="Ministry of Propaganda" +export CN="Joe Rayhawk" +export E="jrayhawk+ssl@omgwallhack.org" # also used for From: and CC: in ./mailcert.sh usage + +export OPENSSL_CONFIG="openssl.cnf" + +export EMAIL_DEFAULT_DOMAIN="omgwallhack.org" + +if [ $SUPPLEMENTARY_CONFIG ]; then + if [ -e ./"$SUPPLEMENTARY_CONFIG" ]; then + . ./"$SUPPLEMENTARY_CONFIG" # dash is finnicky about how paths for sourcing work + elif [ -e /"$SUPPLEMENTARY_CONFIG" ]; then + . /"$SUPPLEMENTARY_CONFIG" + else + echo "$SUPPLEMENTARY_CONFIG" does not exist + exit 1 + fi +fi + +if [ -e ./local.cfg ]; then + . ./local.cfg # dash is finnicky about how paths for sourcing work +fi -- cgit v1.2.3