Update dispatcharr-install.sh

This commit is contained in:
CanbiZ 2025-10-01 11:22:24 +02:00
parent a63e8e58f3
commit 96436cb6fe

View File

@ -13,13 +13,8 @@ setting_up_container
network_check network_check
update_os update_os
# msg_info "Creating ${APP_USER} user"
# groupadd -f $APP_GROUP
# useradd -M -s /usr/sbin/nologin -g $APP_GROUP $APP_USER || true
# msg_ok "Created ${APP_USER} user"
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt install -y \
build-essential \ build-essential \
gcc \ gcc \
libpcre3-dev \ libpcre3-dev \
@ -34,7 +29,6 @@ msg_ok "Installed Dependencies"
PYTHON_VERSION="3.13" setup_uv PYTHON_VERSION="3.13" setup_uv
NODE_VERSION="22" setup_nodejs NODE_VERSION="22" setup_nodejs
PG_VERSION="16" setup_postgresql PG_VERSION="16" setup_postgresql
fetch_and_deploy_gh_release "dispatcharr" "Dispatcharr/Dispatcharr"
msg_info "Set up PostgreSQL Database" msg_info "Set up PostgreSQL Database"
DB_NAME=dispatcharr_db DB_NAME=dispatcharr_db
@ -54,9 +48,9 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';"
} >>~/dispatcharr.creds } >>~/dispatcharr.creds
msg_ok "Set up PostgreSQL Database" msg_ok "Set up PostgreSQL Database"
fetch_and_deploy_gh_release "dispatcharr" "Dispatcharr/Dispatcharr"
msg_info "Setup Python (uv) requirements (system)" msg_info "Setup Python (uv) requirements (system)"
UV_PY="${PYTHON_VERSION:-3.13}"
$STD uv python install "$UV_PY"
cd /opt/dispatcharr cd /opt/dispatcharr
PYPI_URL="https://pypi.org/simple" PYPI_URL="https://pypi.org/simple"
mapfile -t EXTRA_INDEX_URLS < <(grep -E '^(--(extra-)?index-url|-i)\s' requirements.txt 2>/dev/null | awk '{print $2}' | sed 's#/*$##') mapfile -t EXTRA_INDEX_URLS < <(grep -E '^(--(extra-)?index-url|-i)\s' requirements.txt 2>/dev/null | awk '{print $2}' | sed 's#/*$##')