diff --git a/ct/aiostreams.sh b/ct/aiostreams.sh deleted file mode 100755 index e8fb7500ad..0000000000 --- a/ct/aiostreams.sh +++ /dev/null @@ -1,93 +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: MrNRod -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/Viren070/AIOStreams - -APP="AIOStreams" -var_tags="${var_tags:-media;streaming;stremio}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" -var_disk="${var_disk:-8}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified -var_unprivileged="${var_unprivileged:-1}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2419}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/aiostreams ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "aiostreams" "Viren070/AIOStreams" "" "" "v"; then - msg_info "Stopping Service" - systemctl stop aiostreams - msg_ok "Stopped Service" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "aiostreams" "Viren070/AIOStreams" "tarball" "latest" "" "" "v" - AIOSTREAMS_TAG="$CHECK_UPDATE_RELEASE" - - PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/aiostreams/package.json) - NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION:-11.0.8}" setup_nodejs - - msg_info "Building Application (Patience)" - cd /opt/aiostreams - export NODE_OPTIONS="--max-old-space-size=3072" - $STD pnpm install --frozen-lockfile - $STD pnpm run build - unset NODE_OPTIONS - cp -r /opt/aiostreams/packages/server/src/static /opt/aiostreams/packages/server/dist/static - msg_ok "Built Application" - - msg_info "Generating Version Metadata" - mkdir -p /opt/aiostreams/resources - AIOSTREAMS_VERSION=$(jq -r '.version' /opt/aiostreams/package.json) - AIOSTREAMS_DESC=$(jq -r '.description' /opt/aiostreams/package.json) - AIOSTREAMS_COMMIT_INFO=$(curl -fsSL "https://api.github.com/repos/Viren070/AIOStreams/commits/${AIOSTREAMS_TAG}" 2>/dev/null) - AIOSTREAMS_COMMIT=$(jq -r '.sha[0:8] // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") - AIOSTREAMS_COMMIT_TIME=$(jq -r '.commit.committer.date // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") - cat </opt/aiostreams/resources/metadata.json -{ - "version": "${AIOSTREAMS_VERSION}", - "description": $(jq -Rn --arg d "${AIOSTREAMS_DESC}" '$d'), - "tag": "${AIOSTREAMS_TAG}", - "channel": "stable", - "commitHash": "${AIOSTREAMS_COMMIT:-unknown}", - "buildTime": "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)", - "commitTime": "${AIOSTREAMS_COMMIT_TIME:-$(date -u +%Y-%m-%dT%H:%M:%S.000Z)}" -} -EOF - msg_ok "Generated Version Metadata" - - msg_info "Starting Service" - systemctl start aiostreams - msg_ok "Started Service" - 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 "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" -echo -e "${INFO}${YW} No authentication is enabled by default.${CL}" -echo -e "${INFO}${YW} Set AIOSTREAMS_AUTH in /opt/aiostreams_data/.env to secure the dashboard.${CL}" diff --git a/install/aiostreams-install.sh b/install/aiostreams-install.sh deleted file mode 100755 index 58769e71b6..0000000000 --- a/install/aiostreams-install.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MrNRod -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/Viren070/AIOStreams | Docs: https://docs.aiostreams.viren070.me/ - -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 \ - build-essential \ - python3 \ - libmimalloc3 -msg_ok "Installed Dependencies" - -fetch_and_deploy_gh_release "aiostreams" "Viren070/AIOStreams" "tarball" "latest" "" "" "v" -AIOSTREAMS_TAG="v$(cat ~/.aiostreams)" - -PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/aiostreams/package.json) -NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION:-11.0.8}" setup_nodejs - -msg_info "Configuring Application" -mkdir -p /opt/aiostreams_data -cp /opt/aiostreams/.env.sample /opt/aiostreams_data/.env -SECRET_KEY=$(openssl rand -hex 32) -sed -i \ - -e "s|^BASE_URL=.*|BASE_URL=http://${LOCAL_IP}:3000|" \ - -e "s|^SECRET_KEY=.*|SECRET_KEY=${SECRET_KEY}|" \ - -e "s|^# PORT=3000|PORT=3000|" \ - -e "s|^DATABASE_URI=sqlite://./data/db.sqlite|DATABASE_URI=sqlite:///opt/aiostreams_data/db.sqlite|" \ - /opt/aiostreams_data/.env -msg_ok "Configured Application" - -msg_info "Building AIOStreams (Patience)" -cd /opt/aiostreams -export NODE_OPTIONS="--max-old-space-size=3072" -$STD pnpm install --frozen-lockfile -$STD pnpm run build -unset NODE_OPTIONS -cp -r /opt/aiostreams/packages/server/src/static /opt/aiostreams/packages/server/dist/static -msg_ok "Built AIOStreams" - -msg_info "Generating Version Metadata" -mkdir -p /opt/aiostreams/resources -AIOSTREAMS_VERSION=$(jq -r '.version' /opt/aiostreams/package.json) -AIOSTREAMS_DESC=$(jq -r '.description' /opt/aiostreams/package.json) -AIOSTREAMS_COMMIT_INFO=$(curl -fsSL "https://api.github.com/repos/Viren070/AIOStreams/commits/${AIOSTREAMS_TAG}" 2>/dev/null) -AIOSTREAMS_COMMIT=$(jq -r '.sha // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") -AIOSTREAMS_COMMIT=$(jq -r '.sha[0:8] // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") -cat </opt/aiostreams/resources/metadata.json -{ - "version": "${AIOSTREAMS_VERSION}", - "description": $(jq -Rn --arg d "${AIOSTREAMS_DESC}" '$d'), - "tag": "${AIOSTREAMS_TAG}", - "channel": "stable", - "commitHash": "${AIOSTREAMS_COMMIT:-unknown}", - "buildTime": "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)", - "commitTime": "${AIOSTREAMS_COMMIT_TIME:-$(date -u +%Y-%m-%dT%H:%M:%S.000Z)}" -} -EOF -msg_ok "Generated Version Metadata" - -msg_info "Creating Service" -MIMALLOC_LIB=$(dpkg -L libmimalloc3 | grep -E '/libmimalloc\.so\.[0-9]+$' | head -1) -cat </etc/systemd/system/aiostreams.service -[Unit] -Description=AIOStreams -After=network.target - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/aiostreams -EnvironmentFile=/opt/aiostreams_data/.env -Environment="NODE_OPTIONS=--max-semi-space-size=8 --expose-gc" -Environment="LD_PRELOAD=${MIMALLOC_LIB}" -ExecStart=/usr/bin/node /opt/aiostreams/packages/server/dist/server.js -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now aiostreams -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc diff --git a/json/aiostreams.json b/json/aiostreams.json deleted file mode 100644 index 37442d871f..0000000000 --- a/json/aiostreams.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "AIOStreams", - "slug": "aiostreams", - "categories": [ - 13 - ], - "date_created": "2026-08-10", - "type": "ct", - "platforms": ["pve"], - "updateable": true, - "privileged": false, - "architectures": ["amd64", "arm64"], - "interface_port": 3000, - "documentation": "https://docs.aiostreams.viren070.me/", - "website": "https://github.com/Viren070/AIOStreams", - "repository": "https://github.com/Viren070/AIOStreams", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/aiostreams.webp", - "description": "AIOStreams consolidates multiple Stremio addons and debrid services into a single, highly customisable super-addon, with filtering, sorting, and formatting of results.", - "install_methods": [ - { - "type": "default", - "script": "ct/aiostreams.sh", - "config_path": "/opt/aiostreams_data/.env", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 8, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "No authentication is enabled by default. Set AIOSTREAMS_AUTH in /opt/aiostreams_data/.env to secure the dashboard.", - "type": "warning" - }, - { - "text": "Keep SECRET_KEY in /opt/aiostreams_data/.env: changing it after the first run invalidates all saved encrypted configs. Back up the .env file.", - "type": "warning" - }, - { - "text": "The FUSE share (Shares > FUSE) needs /dev/fuse: set var_fuse=yes or enable FUSE in the advanced install before creating the container. WebDAV and NFS shares work without it.", - "type": "info" - } - ] -}