summaryrefslogtreecommitdiffstats
path: root/base/silent
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2012-11-09 13:01:58 -0800
committerMatthew Harmsen <mharmsen@redhat.com>2012-11-09 13:01:58 -0800
commitaf5841362e9a464def4022de242ae14a3879eff6 (patch)
treef100a88fb42600c0dbe5c773484b5838129ed3c3 /base/silent
parentcfcd0157084daa5a40d91b4ab9b75eadd4133c08 (diff)
downloadpki-af5841362e9a464def4022de242ae14a3879eff6.tar.gz
pki-af5841362e9a464def4022de242ae14a3879eff6.tar.xz
pki-af5841362e9a464def4022de242ae14a3879eff6.zip
Move default location for client certificate database (pkisilent)
* TRAC Ticket #398 - Move default location for client certificate databas
Diffstat (limited to 'base/silent')
-rwxr-xr-xbase/silent/templates/pki_silent.template6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/silent/templates/pki_silent.template b/base/silent/templates/pki_silent.template
index 27e4ae77f..10b95cec2 100755
--- a/base/silent/templates/pki_silent.template
+++ b/base/silent/templates/pki_silent.template
@@ -54,6 +54,10 @@ if [ "${MY_UID}" != "${ROOTUID}" ] &&
exit 255
fi
+if [ -z "${HOME}" ]; then
+ printf "ERROR: The 'HOME' environment variable must be set!\n"
+ exit 255
+fi
##############################################################################
@@ -78,7 +82,7 @@ fi
## PKI Silent Security Database Variables
## (e. g. - PKI Silent "browser" database)
-pki_silent_security_database_repository="/tmp"
+pki_silent_security_database_repository="${HOME}/.pki/certs"
pki_silent_security_database_password=
## PKI Security Domain Variables