fix(install): replace pwgen with openssl for obfspassword

This commit is contained in:
ReturnFI
2025-12-12 09:38:01 +00:00
parent e75b8bc541
commit 7d8526e5c0

View File

@ -36,7 +36,7 @@ install_hysteria() {
fi fi
echo "Generating passwords and UUID..." echo "Generating passwords and UUID..."
obfspassword=$(pwgen -s 32 1) obfspassword=$(openssl rand -base64 24 | tr -dc 'A-Za-z0-9' | head -c 32)
UUID=$(cat /proc/sys/kernel/random/uuid) UUID=$(cat /proc/sys/kernel/random/uuid)
chown hysteria:hysteria /etc/hysteria/ca.key /etc/hysteria/ca.crt chown hysteria:hysteria /etc/hysteria/ca.key /etc/hysteria/ca.crt