From cae745e7d8c38bb38c82f24e0b91be6a01e9bc80 Mon Sep 17 00:00:00 2001 From: Pouzor Date: Mon, 9 Mar 2026 23:50:03 +0100 Subject: [PATCH] fix: replace tr/head password gen with openssl rand to avoid SIGPIPE killing script under set -o pipefail --- scripts/install-proxmox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-proxmox.sh b/scripts/install-proxmox.sh index 3cec225..074bdd1 100755 --- a/scripts/install-proxmox.sh +++ b/scripts/install-proxmox.sh @@ -41,7 +41,7 @@ RAM="${RAM:-1024}" # MB CORES="${CORES:-2}" BRIDGE="${BRIDGE:-vmbr0}" RAW="https://raw.githubusercontent.com/Pouzor/homelable/main" -ROOT_PASSWORD="${ROOT_PASSWORD:-$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 16)}" +ROOT_PASSWORD="${ROOT_PASSWORD:-$(openssl rand -base64 12 | tr -d '+/=')}" step "Creating Homelable LXC (CTID=$CTID, hostname=$CT_HOSTNAME, storage=$STORAGE)"