From b3f5c30232f11baab1ea988431aa376abee90c65 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 20 Oct 2025 12:14:13 +0200 Subject: [PATCH] cleanup --- install/dispatcharr-install.sh | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/install/dispatcharr-install.sh b/install/dispatcharr-install.sh index dc186796..5fda9937 100644 --- a/install/dispatcharr-install.sh +++ b/install/dispatcharr-install.sh @@ -16,7 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ build-essential \ - git \ gcc \ python3-dev \ libpq-dev \ @@ -65,10 +64,16 @@ export POSTGRES_DB=$DB_NAME export POSTGRES_USER=$DB_USER export POSTGRES_PASSWORD=$DB_PASS export POSTGRES_HOST=localhost - $STD uv run python manage.py migrate --noinput $STD uv run python manage.py collectstatic --noinput - +cat </opt/dispatcharr/.env +DATABASE_URL=postgresql://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME} +POSTGRES_DB=$DB_NAME +POSTGRES_USER=$DB_USER +POSTGRES_PASSWORD=$DB_PASS +POSTGRES_HOST=localhost +CELERY_BROKER_URL=redis://localhost:6379/0 +EOF cd /opt/dispatcharr/frontend || exit $STD npm install --legacy-peer-deps $STD npm run build @@ -129,21 +134,10 @@ EOF ln -sf /etc/nginx/sites-available/dispatcharr.conf /etc/nginx/sites-enabled/dispatcharr.conf rm -f /etc/nginx/sites-enabled/default -$STD nginx -t systemctl enable -q --now nginx msg_ok "Configured Nginx" msg_info "Creating Services" - -cat </opt/dispatcharr/.env -DATABASE_URL=postgresql://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME} -POSTGRES_DB=$DB_NAME -POSTGRES_USER=$DB_USER -POSTGRES_PASSWORD=$DB_PASS -POSTGRES_HOST=localhost -CELERY_BROKER_URL=redis://localhost:6379/0 -EOF - cat </opt/dispatcharr/start-gunicorn.sh #!/usr/bin/env bash cd /opt/dispatcharr @@ -259,8 +253,6 @@ User=root [Install] WantedBy=multi-user.target EOF - -systemctl daemon-reload systemctl enable -q --now dispatcharr dispatcharr-celery dispatcharr-celerybeat dispatcharr-daphne msg_ok "Created Services"