From ace6ad0cf247eb1f73aee00caa83a8d44de0ca31 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Tue, 14 Apr 2026 19:58:11 +0200 Subject: [PATCH] fix: remove openssl dependency for password generation Use /dev/urandom instead of openssl rand for generating random passwords. Available on all Linux/macOS systems without requiring openssl to be installed. Co-Authored-By: Claude Opus 4.6 (1M context) --- installer/install.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/installer/install.sh b/installer/install.sh index a1455f8..1db0067 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -135,7 +135,7 @@ prompt_yesno() { } generate_password() { - openssl rand -base64 24 | tr -d '/+=' | head -c 32 + tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 32 } # --- Argument parsing --- @@ -304,10 +304,6 @@ check_prerequisites() { log_info "Docker Compose version: $compose_version" fi - if ! command -v openssl >/dev/null 2>&1; then - log_error "OpenSSL is not installed (needed for password generation)." - errors=$((errors + 1)) - fi local socket="${DOCKER_SOCKET:-$DEFAULT_DOCKER_SOCKET}" if [ ! -S "$socket" ]; then