#!/usr/bin/env bash # Copyright (c) 2021-2026 community-scripts ORG # Author: michelroegl-brunner # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # Source: https://github.com/Dictionarry-Hub/profilarr source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors setting_up_container network_check update_os msg_info "Installing Dependencies" $STD apt install -y \ git \ libsqlite3-0 msg_ok "Installed Dependencies" ARCH=$(uname -m) fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "v2.7.5" "/usr/local/bin" "deno-${ARCH}-unknown-linux-gnu.zip" fetch_and_deploy_gh_release "profilarr" "Dictionarry-Hub/profilarr" "tarball" PROFILARR_VERSION=$(cat ~/.profilarr) msg_info "Building Profilarr v${PROFILARR_VERSION} (Patience)" cd /opt/profilarr cat >src/lib/shared/build.ts </etc/default/profilarr PORT=6868 HOST=0.0.0.0 APP_BASE_PATH=/var/lib/profilarr DENO_SQLITE_PATH=${SQLITE_PATH} EOF msg_ok "Installed Profilarr" msg_info "Creating Service" cat </etc/systemd/system/profilarr.service [Unit] Description=Profilarr - Configuration Management for Radarr/Sonarr After=network.target [Service] Type=simple WorkingDirectory=/opt/profilarr/app EnvironmentFile=/etc/default/profilarr Environment=HOME=/root ExecStart=/opt/profilarr/app/profilarr Restart=always RestartSec=5 [Install] WantedBy=multi-user.target EOF systemctl enable -q --now profilarr msg_ok "Created Service" motd_ssh customize cleanup_lxc