We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 416f807 commit f2d57a6Copy full SHA for f2d57a6
misc/tools.func
@@ -1535,9 +1535,10 @@ check_for_gh_release() {
1535
# ------------------------------------------------------------------------------
1536
create_self_signed_cert() {
1537
local APP_NAME="${1:-${APPLICATION}}"
1538
- local CERT_DIR="/etc/ssl/${APP_NAME}"
1539
- local CERT_KEY="${CERT_DIR}/${APP_NAME}.key"
1540
- local CERT_CRT="${CERT_DIR}/${APP_NAME}.crt"
+ local APP_NAME_LC=$(echo "${APP_NAME,,}" | tr -d ' ')
+ local CERT_DIR="/etc/ssl/${APP_NAME_LC}"
+ local CERT_KEY="${CERT_DIR}/${APP_NAME_LC}.key"
1541
+ local CERT_CRT="${CERT_DIR}/${APP_NAME_LC}.crt"
1542
1543
if [[ -f "$CERT_CRT" && -f "$CERT_KEY" ]]; then
1544
return 0
0 commit comments