changed defaults

This commit is contained in:
John Lancaster
2025-12-29 23:50:41 -06:00
parent 8f60dad7f6
commit f6492a2c5f

View File

@@ -148,12 +148,12 @@ fi
# 1. Collect Inputs # 1. Collect Inputs
# Example: # Example:
get_input "HOST_NAME" "Enter Hostname" "$(hostname)" "false" get_input "HOST_NAME" "Enter Hostname" "$(hostname)" "false"
get_input "CERT_DIR" "Enter directory for certificates" "/var/lib/ssl" "false" get_input "CERT_DIR" "Enter directory for certificates" "/var/lib/tls" "false"
get_input "CERT_LOCATION" "Enter specific path for cert" "${CERT_DIR}/cert.pem" "false" get_input "CERT_LOCATION" "Name for cert file" "cert.pem" "false"
get_input "KEY_LOCATION" "Enter specific path for private key" "${CERT_DIR}/key.pem" "false" get_input "KEY_LOCATION" "Name for private key" "key.pem" "false"
export CERT_LOCATION=$(readlink -f $CERT_LOCATION) export CERT_LOCATION=$(readlink -f ${CERT_DIR}/$CERT_LOCATION)
export KEY_LOCATION=$(readlink -f $KEY_LOCATION) export KEY_LOCATION=$(readlink -f ${CERT_DIR}/$KEY_LOCATION)
# 2. Confirm # 2. Confirm
confirm_inputs "CERT_LOCATION" "KEY_LOCATION" confirm_inputs "CERT_LOCATION" "KEY_LOCATION"