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'