icinga2/pki/pkifuncs

13 lines
381 B
Plaintext
Raw Normal View History

check_pki_dir() {
2013-10-17 14:32:38 +02:00
if [ -z "$ICINGA_CA" ]; then
echo "Please set the ICINGA_CA environment variable to the path for your Icinga CA." >&2
2013-10-17 15:14:45 +02:00
echo "e.g.: export ICINGA_CA=\"$HOME/icinga-ca\"" >&2
2013-10-17 14:32:38 +02:00
exit 1
fi
if [ ! -d "$ICINGA_CA" ]; then
echo "The path you specified in the ICINGA_CA environment variable ($ICINGA_CA) does not exist or is not a directory." >&2
exit 1
fi
}