From ed618e703c6a2a03ee82c229a0819673a8d0c57c Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Wed, 31 Dec 2025 17:41:40 +0000 Subject: [PATCH] fix(seedbox): fix generate_password SIGPIPE with pipefail --- seedbox/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seedbox/install.sh b/seedbox/install.sh index 5cf292e..027ff74 100644 --- a/seedbox/install.sh +++ b/seedbox/install.sh @@ -41,8 +41,9 @@ check_required_vars() { } # Generate random password if not provided +# Note: uses head -c with || true to avoid SIGPIPE with pipefail generate_password() { - tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 16 + head -c 100 /dev/urandom | tr -dc 'A-Za-z0-9' | head -c 16 || true } # Configuration variables (can be overridden via environment) @@ -73,7 +74,7 @@ main() { log_info "Installing base packages..." sudo apt update -qq - sudo apt install -y -qq vim ca-certificates curl gnupg lsb-release fail2ban unattended-upgrades nfs-common at ufw > /dev/null + sudo apt install -y -qq vim ca-certificates curl gnupg lsb-release fail2ban unattended-upgrades nfs-common at > /dev/null log_info "Installing Tailscale..." curl -fsSL https://tailscale.com/install.sh | sh