Change location of private key file used to sign distribution packages

- If the environment variable OSXFUSE_PRIVATE_KEY is defined, the file it
  refers to is used to sign distribution packages
- If OSXFUSE_PRIVATE_KEY is not defined, the script uses the file
  $HOME/.osxfuse_private_key to sign distribution packages
- If the private key file could not be located, an error message is displayed
This commit is contained in:
Benjamin Fleischer 2011-06-10 16:34:01 +02:00
parent baabc82dbc
commit 9f35a18889
1 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,12 @@ export PATH
# Therefore, do not set M_CONF_TMPDIR to such a directory.
#
readonly M_CONF_TMPDIR=/tmp
readonly M_CONF_PRIVKEY=/etc/macfuse/private.der
if [ -n "$OSXFUSE_PRIVATE_KEY" ]; then
readonly M_CONF_PRIVKEY="$OSXFUSE_PRIVATE_KEY"
else
readonly M_CONF_PRIVKEY="$HOME/.osxfuse_private_key"
fi
# Other constants
#