Commit ea6a107e authored by Michael J. Smith's avatar Michael J. Smith
Browse files

Change PATH to DIR to prevent conflict with system PATH variable

parent 0a3aed79
......@@ -3,10 +3,10 @@
key() {
echo "Generating SSL key file..."
echo "Making directory ${PATH}"
mkdir -p ${PATH}
echo "Making directory ${DIR}"
mkdir -p ${DIR}
echo "Generating key file ${KEY} in ${PATH}"
echo "Generating key file ${KEY} in ${DIR}"
openssl genrsa -out ${KEY} 2048
echo "Changing permissions on key file to 600"
......@@ -130,11 +130,9 @@ if [ $# -lt 2 ]; then
exit 1
fi
export PATH=/bin:$PATH
DOMAIN=$2
PATH="/etc/ssl/${DOMAIN}"
BASE="${PATH}/${DOMAIN}"
DIR="/etc/ssl/${DOMAIN}"
BASE="${DIR}/${DOMAIN}"
KEY="${BASE}.key"
CSR="${BASE}.csr"
CRT="${BASE}.crt"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment