diff --git a/ct/sonobarr.sh b/ct/sonobarr.sh index 0e1ba7031..2ab8cc62c 100644 --- a/ct/sonobarr.sh +++ b/ct/sonobarr.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/GoldenSpringness/ProxmoxVED/refs/heads/feature/sonobarr/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: GoldenSpringness # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -24,7 +24,7 @@ function update_script() { check_container_storage check_container_resources - if [[ ! -f "/opt/sonobarr" ]]; then + if [[ ! -d "/opt/sonobarr" ]]; then msg_error "No sonobarr Installation Found!" exit fi diff --git a/install/sonobarr-install.sh b/install/sonobarr-install.sh index 5a247b656..da5cedb4e 100644 --- a/install/sonobarr-install.sh +++ b/install/sonobarr-install.sh @@ -14,19 +14,19 @@ network_check update_os fetch_and_deploy_gh_release "sonobarr" "Dodelidoo-Labs/sonobarr" "tarball" -cd /opt/sonobarr +msg_info "Setting up sonobarr" msg_info "Setting up sonobarr" -apt install python3.13-venv -y -python3 -m venv venv -source venv/bin/activate -pip install --no-cache-dir -r requirements.txt +$STD apt-get install -y python3.13-venv +$STD python3 -m venv /opt/sonobarr/venv +source /opt/sonobarr/venv/bin/activate +$STD pip install --no-cache-dir -r /opt/sonobarr/requirements.txt mv ".sample-env" ".env" sed -i "s/^secret_key=.*/secret_key=$(openssl rand -hex 16)/" .env msg_ok "Set up sonobarr" msg_info "Creating Service" -cat </etc/systemd/system/sonobarr.service +cat </etc/systemd/system/sonobarr.service [Unit] Description=sonobarr Service After=network.target