From 2fdc89565cff7bc76e30be9b31aba078d15ffb33 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Wed, 3 Jun 2026 09:53:23 +0200 Subject: [PATCH] KI-AGENT: Encryption-Key im Selfhost-Setup als Hex erzeugen --- scripts/selfhost-setup.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/selfhost-setup.sh b/scripts/selfhost-setup.sh index 3fd4a31..1e8d4a3 100755 --- a/scripts/selfhost-setup.sh +++ b/scripts/selfhost-setup.sh @@ -108,6 +108,14 @@ random_secret() { fi } +random_hex_secret() { + if command -v openssl >/dev/null 2>&1; then + openssl rand -hex 32 | tr -d '\n' + else + LC_ALL=C tr -dc 'a-f0-9'