From ff2cd48038a8058c713f2ce2847769703b21d83f Mon Sep 17 00:00:00 2001 From: GoldenSpring Date: Fri, 30 Jan 2026 11:27:18 +0300 Subject: [PATCH] added the password generation for admin --- frontend/public/json/sonobarr.json | 2 +- install/sonobarr-install.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/public/json/sonobarr.json b/frontend/public/json/sonobarr.json index 607c53216..965d6aee0 100644 --- a/frontend/public/json/sonobarr.json +++ b/frontend/public/json/sonobarr.json @@ -33,7 +33,7 @@ }, "notes": [ { - "text": "Change the default admin credentials", + "text": "Default generated admin password is in the env file (sonobarr_superadmin_password)", "type": "info" } ] diff --git a/install/sonobarr-install.sh b/install/sonobarr-install.sh index 0bdb4c036..7decf7c94 100644 --- a/install/sonobarr-install.sh +++ b/install/sonobarr-install.sh @@ -22,6 +22,7 @@ $STD uv pip install --no-cache-dir -r /opt/sonobarr/requirements.txt mkdir -p /etc/sonobarr mv /opt/sonobarr/.sample-env /etc/sonobarr/.env sed -i "s/^secret_key=.*/secret_key=$(openssl rand -hex 16)/" /etc/sonobarr/.env +sed -i "s/^sonobarr_superadmin_password=.*/secret_key=$(openssl rand -hex 16)/" /etc/sonobarr/.env echo "release_version=$(cat ~/.sonobarr)" >>/etc/sonobarr/.env echo "sonobarr_config_dir=/etc/sonobarr" >>/etc/sonobarr.env msg_ok "Set up sonobarr"