We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93dff5 commit 82abc9aCopy full SHA for 82abc9a
ct/dispatcharr.sh
@@ -87,14 +87,9 @@ function update_script() {
87
mv /tmp/start-daphne.sh.backup /opt/dispatcharr/start-daphne.sh
88
fi
89
90
- # Add DJANGO_SECRET_KEY if missing (required for v0.13.1+)
91
- if [[ -f /opt/dispatcharr/.env ]]; then
92
- if ! grep -q "DJANGO_SECRET_KEY" /opt/dispatcharr/.env; then
93
- msg_info "Adding DJANGO_SECRET_KEY to .env file"
+ if ! grep -q "DJANGO_SECRET_KEY" /opt/dispatcharr/.env; then
94
DJANGO_SECRET=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | cut -c1-50)
95
echo "DJANGO_SECRET_KEY=$DJANGO_SECRET" >> /opt/dispatcharr/.env
96
- msg_ok "Added DJANGO_SECRET_KEY"
97
- fi
98
99
100
cd /opt/dispatcharr
0 commit comments