changed defaults
This commit is contained in:
@@ -148,12 +148,12 @@ fi
|
||||
# 1. Collect Inputs
|
||||
# Example:
|
||||
get_input "HOST_NAME" "Enter Hostname" "$(hostname)" "false"
|
||||
get_input "CERT_DIR" "Enter directory for certificates" "/var/lib/ssl" "false"
|
||||
get_input "CERT_LOCATION" "Enter specific path for cert" "${CERT_DIR}/cert.pem" "false"
|
||||
get_input "KEY_LOCATION" "Enter specific path for private key" "${CERT_DIR}/key.pem" "false"
|
||||
get_input "CERT_DIR" "Enter directory for certificates" "/var/lib/tls" "false"
|
||||
get_input "CERT_LOCATION" "Name for cert file" "cert.pem" "false"
|
||||
get_input "KEY_LOCATION" "Name for private key" "key.pem" "false"
|
||||
|
||||
export CERT_LOCATION=$(readlink -f $CERT_LOCATION)
|
||||
export KEY_LOCATION=$(readlink -f $KEY_LOCATION)
|
||||
export CERT_LOCATION=$(readlink -f ${CERT_DIR}/$CERT_LOCATION)
|
||||
export KEY_LOCATION=$(readlink -f ${CERT_DIR}/$KEY_LOCATION)
|
||||
|
||||
# 2. Confirm
|
||||
confirm_inputs "CERT_LOCATION" "KEY_LOCATION"
|
||||
|
||||
Reference in New Issue
Block a user