From 01b5c7063906a0568eb77bb445a5ad1edbe5e17e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 16 Mar 2019 10:32:11 +0100 Subject: [PATCH] :ambulance: Fixes off by one error in config.require.ssl --- lib/config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.sh b/lib/config.sh index 85108eb..ce4302c 100644 --- a/lib/config.sh +++ b/lib/config.sh @@ -528,8 +528,8 @@ function bashio::config.suggest.safe_password() { # ------------------------------------------------------------------------------ function bashio::config.require.ssl() { local key=${1:-"ssl"} - local certfile=${1:-"certfile"} - local keyfile=${2:-"keyfile"} + local certfile=${2:-"certfile"} + local keyfile=${3:-"keyfile"} if ! bashio::config.true "${key}"; then return "${__BASHIO_EXIT_OK}"