From 906ef4426e32debc51394d730b970f0646e03441 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 26 Oct 2026 07:49:21 +0000 Subject: [PATCH] Delete streamystats (ct) after migration to ProxmoxVE --- ct/streamystats.sh | 71 ----------------------- install/streamystats-install.sh | 100 -------------------------------- json/streamystats.json | 49 ---------------- 3 files changed, 220 deletions(-) delete mode 100644 ct/streamystats.sh delete mode 100644 install/streamystats-install.sh delete mode 100644 json/streamystats.json diff --git a/ct/streamystats.sh b/ct/streamystats.sh deleted file mode 100644 index 8334bf4595..0000000000 --- a/ct/streamystats.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" -_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" -source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/fredrikburmester/streamystats - -APP="Streamystats" -var_tags="${var_tags:-analytics;jellyfin}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-3072}" -var_disk="${var_disk:-10}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_arm64="${var_arm64:-yes}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/streamystats ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "streamystats" "fredrikburmester/streamystats"; then - msg_info "Stopping Streamystats" - systemctl stop streamystats-nextjs-app streamystats-job-server - msg_ok "Stopped Streamystats" - - msg_info "Updating Bun" - $STD bun upgrade - msg_ok "Updated Bun" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "streamystats" "fredrikburmester/streamystats" "tarball" - - msg_info "Building Streamystats" - cd /opt/streamystats - $STD bun install --frozen-lockfile - NEXT_TELEMETRY_DISABLED=1 NEXT_PUBLIC_VERSION="v$(cat ~/.streamystats)" $STD bun run build - msg_ok "Built Streamystats" - - msg_info "Migrating Streamystats Database" - $STD bun --env-file=/opt/streamystats_data/.env run db:migrate - msg_ok "Migrated Streamystats Database" - - msg_info "Starting Streamystats" - systemctl start streamystats-job-server streamystats-nextjs-app - msg_ok "Started Streamystats" - msg_ok "Updated successfully!" - fi - exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" -echo -e "${INFO}${YW}Access it using the following URL:${CL}" -echo -e "${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/install/streamystats-install.sh b/install/streamystats-install.sh deleted file mode 100644 index c6079c36eb..0000000000 --- a/install/streamystats-install.sh +++ /dev/null @@ -1,100 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/fredrikburmester/streamystats - -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 unzip -msg_ok "Installed Dependencies" - -PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql -PG_DB_NAME="streamystats" PG_DB_USER="streamystats" PG_DB_EXTENSIONS="vector,pg_trgm,uuid-ossp" setup_postgresql_db - -msg_info "Installing Bun" -export BUN_INSTALL="/root/.bun" -curl -fsSL https://bun.sh/install | $STD bash -ln -sf /root/.bun/bin/bun /usr/local/bin/bun -ln -sf /root/.bun/bin/bunx /usr/local/bin/bunx -msg_ok "Installed Bun" - -fetch_and_deploy_gh_release "streamystats" "fredrikburmester/streamystats" "tarball" - -msg_info "Building Streamystats" -cd /opt/streamystats -$STD bun install --frozen-lockfile -NEXT_TELEMETRY_DISABLED=1 NEXT_PUBLIC_VERSION="v$(cat ~/.streamystats)" $STD bun run build -msg_ok "Built Streamystats" - -msg_info "Configuring Streamystats" -mkdir -p /opt/streamystats_data -cat </opt/streamystats_data/.env -NODE_ENV=production -NEXT_TELEMETRY_DISABLED=1 -DATABASE_URL=postgresql://streamystats:${PG_DB_PASS}@127.0.0.1:5432/streamystats -JOB_SERVER_URL=http://127.0.0.1:3005 -NEXTJS_URL=http://127.0.0.1:3000 -SESSION_SECRET=$(openssl rand -hex 64) -NEXT_SERVER_ACTIONS_ENCRYPTION_KEY=$(openssl rand -base64 32) -EOF -chmod 600 /opt/streamystats_data/.env -msg_ok "Configured Streamystats" - -msg_info "Migrating Streamystats Database" -$STD bun --env-file=/opt/streamystats_data/.env run db:migrate -msg_ok "Migrated Streamystats Database" - -msg_info "Creating Services" -cat </etc/systemd/system/streamystats-job-server.service -[Unit] -Description=Streamystats Job Server -After=network.target postgresql.service - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/streamystats/apps/job-server -EnvironmentFile=/opt/streamystats_data/.env -Environment=HOST=127.0.0.1 -Environment=PORT=3005 -ExecStart=/usr/local/bin/bun run start -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -cat </etc/systemd/system/streamystats-nextjs-app.service -[Unit] -Description=Streamystats Web -After=network.target streamystats-job-server.service -Wants=streamystats-job-server.service - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/streamystats/apps/nextjs-app -EnvironmentFile=/opt/streamystats_data/.env -Environment=PORT=3000 -ExecStart=/usr/local/bin/bun run start -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now streamystats-job-server streamystats-nextjs-app -msg_ok "Created Services" - -motd_ssh -customize -cleanup_lxc diff --git a/json/streamystats.json b/json/streamystats.json deleted file mode 100644 index f79e9344d6..0000000000 --- a/json/streamystats.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "Streamystats", - "slug": "streamystats", - "categories": [ - 9 - ], - "date_created": "2026-09-29", - "type": "ct", - "updateable": true, - "privileged": false, - "architectures": [ - "amd64", - "arm64" - ], - "interface_port": 3000, - "documentation": "https://github.com/fredrikburmester/streamystats/blob/main/DOCKERLESS.md", - "website": "https://github.com/fredrikburmester/streamystats", - "repository": "https://github.com/fredrikburmester/streamystats", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/streamystats.webp", - "description": "Streamystats is a statistics and analytics service for Jellyfin. It shows watch history, per-user, library and client statistics and watch-time graphs for one or more servers, and can import history from Jellystat and the Playback Reporting plugin.", - "install_methods": [ - { - "type": "default", - "script": "ct/streamystats.sh", - "config_path": "/opt/streamystats_data/.env", - "resources": { - "cpu": 2, - "ram": 3072, - "hdd": 10, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "The first visit asks for your Jellyfin URL and an API key (Jellyfin: Dashboard > API Keys). After that, sign in with your Jellyfin account; Jellyfin admins get the admin views.", - "type": "info" - }, - { - "text": "AI chat and recommendations stay off until you set up a provider under Settings > AI.", - "type": "info" - } - ] -}