Update Dispatcharr defaults and improve install script
Increased default RAM to 2048MB and updated default OS version to 13 in ct/dispatcharr.sh. Refactored update_script for improved readability. Modified install/dispatcharr-install.sh to use uv for Python package installation and clarified virtual environment creation comments.
This commit is contained in:
parent
9abdff165b
commit
071f2aa83a
@ -9,10 +9,10 @@ APP="Dispatcharr"
|
||||
APP_NAME=${APP,,}
|
||||
var_tags="${var_tags:-media;arr}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-1024}"
|
||||
var_ram="${var_ram:-2048}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-12}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
|
@ -51,7 +51,7 @@ fetch_and_deploy_gh_release "dispatcharr" "Dispatcharr/Dispatcharr"
|
||||
|
||||
msg_info "Setup Python virtual environment"
|
||||
cd /opt/dispatcharr
|
||||
# WICHTIG: Erstelle ein echtes venv statt --system
|
||||
# uv venv erstellt ein minimales venv - wir nutzen uv zum Installieren
|
||||
$STD uv venv env
|
||||
msg_ok "Virtual environment created"
|
||||
|
||||
@ -63,11 +63,11 @@ UV_INDEX_ARGS=(--index-url "$PYPI_URL" --index-strategy unsafe-best-match)
|
||||
for u in "${EXTRA_INDEX_URLS[@]}"; do
|
||||
[[ -n "$u" && "$u" != "$PYPI_URL" ]] && UV_INDEX_ARGS+=(--extra-index-url "$u")
|
||||
done
|
||||
|
||||
if [[ -f requirements.txt ]]; then
|
||||
$STD /opt/dispatcharr/env/bin/python -m pip install --upgrade pip setuptools wheel
|
||||
$STD /opt/dispatcharr/env/bin/pip install "${UV_INDEX_ARGS[@]}" -r requirements.txt
|
||||
$STD uv pip install --python /opt/dispatcharr/env/bin/python "${UV_INDEX_ARGS[@]}" -r requirements.txt
|
||||
fi
|
||||
$STD /opt/dispatcharr/env/bin/pip install "${UV_INDEX_ARGS[@]}" gunicorn gevent celery daphne
|
||||
$STD uv pip install --python /opt/dispatcharr/env/bin/python "${UV_INDEX_ARGS[@]}" gunicorn gevent celery daphne
|
||||
ln -sf /usr/bin/ffmpeg /opt/dispatcharr/env/bin/ffmpeg
|
||||
msg_ok "Python Requirements Installed"
|
||||
|
||||
@ -79,7 +79,6 @@ msg_ok "Built Frontend"
|
||||
|
||||
msg_info "Running Django Migrations"
|
||||
cd /opt/dispatcharr
|
||||
# WICHTIG: Setze Umgebungsvariablen für Django/PostgreSQL
|
||||
export POSTGRES_DB="$DB_NAME"
|
||||
export POSTGRES_USER="$DB_USER"
|
||||
export POSTGRES_PASSWORD="$DB_PASS"
|
||||
|
Loading…
x
Reference in New Issue
Block a user