Skip to content

Commit 82abc9a

Browse files
authored
short
1 parent a93dff5 commit 82abc9a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ct/dispatcharr.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,9 @@ function update_script() {
8787
mv /tmp/start-daphne.sh.backup /opt/dispatcharr/start-daphne.sh
8888
fi
8989

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"
90+
if ! grep -q "DJANGO_SECRET_KEY" /opt/dispatcharr/.env; then
9491
DJANGO_SECRET=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | cut -c1-50)
9592
echo "DJANGO_SECRET_KEY=$DJANGO_SECRET" >> /opt/dispatcharr/.env
96-
msg_ok "Added DJANGO_SECRET_KEY"
97-
fi
9893
fi
9994

10095
cd /opt/dispatcharr

0 commit comments

Comments
 (0)