mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2024-11-11 16:09:18 +00:00
14 lines
548 B
Bash
14 lines
548 B
Bash
# Check if qBittorrent and SABnzbd are installed
|
|
installed_apps=$("${UMBREL_ROOT}/scripts/app" ls-installed)
|
|
|
|
if echo "$installed_apps" | grep --quiet 'qbittorrent'; then
|
|
export APP_RADARR_QBITTORRENT_INSTALLED="true"
|
|
fi
|
|
|
|
if echo "$installed_apps" | grep --quiet 'sabnzbd'; then
|
|
export APP_RADARR_SABNZBD_INSTALLED="true"
|
|
# export SABNZBD_API_KEY, which has the format:
|
|
# api_key = 98e3444f7fab45e592958673bf656g3
|
|
export APP_RADARR_SABNZBD_API_KEY=$(grep -Po 'api_key = \K.*' "${UMBREL_ROOT}/app-data/sabnzbd/data/config/sabnzbd.ini")
|
|
fi
|