diff --git a/scripts/auth-common.sh b/scripts/auth-common.sh index 589eea8d4..49541b4c9 100644 --- a/scripts/auth-common.sh +++ b/scripts/auth-common.sh @@ -14,11 +14,11 @@ fi set +x IRONIC_HTPASSWD_FILE=/etc/ironic/htpasswd if [[ -f "/auth/ironic/username" ]]; then - read -r IRONIC_HTPASSWD_USERNAME<"/auth/ironic/username" + read -r IRONIC_HTPASSWD_USERNAME<"/auth/ironic/username" || true fi IRONIC_HTPASSWD_USERNAME=${IRONIC_HTPASSWD_USERNAME:-} if [[ -f "/auth/ironic/password" ]]; then - read -r IRONIC_HTPASSWD_PASSWORD<"/auth/ironic/password" + read -r IRONIC_HTPASSWD_PASSWORD<"/auth/ironic/password" || true fi IRONIC_HTPASSWD_PASSWORD=${IRONIC_HTPASSWD_PASSWORD:-} if [[ -n "${IRONIC_HTPASSWD_USERNAME}" ]]; then