Compare commits

..

15 Commits

Author SHA1 Message Date
e97f2ae6f8 Update versions.json 2025-12-16 12:06:30 +00:00
1333624879 Update .app files (#10030)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2025-12-16 11:55:39 +01:00
c1831f9bc8 Update CHANGELOG.md (#10029)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-16 10:53:20 +00:00
4b09cb3d00 [REFACTOR]: NetVisor => Scanopy (#10011)
Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
2025-12-16 11:52:58 +01:00
01b147d28a Update CHANGELOG.md (#10028)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-16 10:50:55 +00:00
e95ae11f88 feat(tools): add optional enabled parameter to setup_deb822_repo (#10017) 2025-12-16 11:50:28 +01:00
f2a2ec30ba Update CHANGELOG.md (#10027)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-16 10:49:57 +00:00
798015df6f fix(miniflux): use systemctl to check service instead of file path (#10024) 2025-12-16 11:49:34 +01:00
2773faee08 Update CHANGELOG.md (#10026)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-16 10:49:01 +00:00
b524cbe232 PhotoPrism: export env variables for CLI tools (#10023) 2025-12-16 11:48:35 +01:00
7b55077a00 Update CHANGELOG.md (#10025)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-16 10:28:36 +00:00
7ab0327376 fix(build): map Etc/* timezones to 'host' for pct compatibility (#10020) 2025-12-16 11:28:12 +01:00
51ba8ca7c8 fix(2fauth): set PHP_VERSION globally for nginx config
The PHP_VERSION was passed inline to setup_php which uses it as a local
variable. This caused 'unbound variable' error in the nginx heredoc.

Setting PHP_VERSION before the function call keeps it in global scope
for use in the nginx configuration.
2025-12-16 11:01:10 +01:00
6d78e4da6b Update CHANGELOG.md (#10022)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-16 09:46:29 +00:00
a3fb28105d 2fauth: bump to php8.4 (#10019)
* fix(2fauth): use default PHP version instead of hardcoded 8.3

- Remove hardcoded PHP_VERSION=8.3, let setup_php use default (8.4)
- Remove invalid modules 'session' and 'openssl' (part of php-common)
- Remove duplicate 'cli' module (already in DEFAULT_MODULES)
- Make nginx fastcgi_pass use dynamic PHP_VERSION variable

Fixes installation on Debian 13 (Trixie) which ships PHP 8.4.

* Update 2fauth-install.sh
2025-12-16 10:46:07 +01:00
16 changed files with 461 additions and 827 deletions

View File

@ -1,512 +0,0 @@
name: Update Versions from GitHub
on:
workflow_dispatch:
schedule:
# Runs at 06:00 and 18:00 UTC
- cron: "0 6,18 * * *"
permissions:
contents: write
pull-requests: write
env:
SOURCES_FILE: frontend/public/json/version-sources.json
VERSIONS_FILE: frontend/public/json/versions.json
jobs:
update-versions:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: main
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Extract version sources from install scripts
run: |
set -euo pipefail
echo "========================================="
echo " Extracting version sources from scripts"
echo "========================================="
# Initialize sources array
sources_json="[]"
# Function to add a source entry
add_source() {
local slug="$1"
local type="$2"
local source="$3"
local script="$4"
# Check if slug already exists (avoid duplicates)
if echo "$sources_json" | jq -e ".[] | select(.slug == \"$slug\")" > /dev/null 2>&1; then
return
fi
sources_json=$(echo "$sources_json" | jq \
--arg slug "$slug" \
--arg type "$type" \
--arg source "$source" \
--arg script "$script" \
'. += [{"slug": $slug, "type": $type, "source": $source, "script": $script, "version": null, "date": null}]')
}
echo ""
echo "=== Method 1: fetch_and_deploy_gh_release calls ==="
count=0
for script in install/*-install.sh; do
[[ ! -f "$script" ]] && continue
slug=$(basename "$script" | sed 's/-install\.sh$//')
# Extract repo from fetch_and_deploy_gh_release "app" "owner/repo"
while IFS= read -r line; do
if [[ "$line" =~ fetch_and_deploy_gh_release[[:space:]]+\"[^\"]*\"[[:space:]]+\"([^\"]+)\" ]]; then
repo="${BASH_REMATCH[1]}"
add_source "$slug" "github" "$repo" "$script"
((count++))
break # Only first match per script
fi
done < <(grep 'fetch_and_deploy_gh_release' "$script" 2>/dev/null || true)
done
echo "Found $count scripts with fetch_and_deploy_gh_release"
echo ""
echo "=== Method 2: GitHub URLs in scripts (fallback) ==="
count=0
for script in install/*-install.sh; do
[[ ! -f "$script" ]] && continue
slug=$(basename "$script" | sed 's/-install\.sh$//')
# Skip if already found
if echo "$sources_json" | jq -e ".[] | select(.slug == \"$slug\")" > /dev/null 2>&1; then
continue
fi
# Look for github.com/owner/repo patterns
repo=$(grep -oE 'github\.com/([a-zA-Z0-9_-]+/[a-zA-Z0-9_.-]+)' "$script" 2>/dev/null \
| sed 's|github\.com/||' \
| sed 's/\.git$//' \
| grep -v 'community-scripts/ProxmoxVE' \
| grep -v '^repos/' \
| head -1 || true)
if [[ -n "$repo" && "$repo" =~ ^[a-zA-Z0-9_-]+/[a-zA-Z0-9_.-]+$ ]]; then
add_source "$slug" "github" "$repo" "$script"
((count++))
fi
done
echo "Found $count additional scripts with GitHub URLs"
echo ""
echo "=== Method 3: npm packages ==="
# Detect npm install --global <package>
for script in install/*-install.sh; do
[[ ! -f "$script" ]] && continue
slug=$(basename "$script" | sed 's/-install\.sh$//')
# Skip if already found
if echo "$sources_json" | jq -e ".[] | select(.slug == \"$slug\")" > /dev/null 2>&1; then
continue
fi
# Look for npm install --global <package>
pkg=$(grep -oE 'npm install[^|;]*--global[^|;]*' "$script" 2>/dev/null \
| grep -oE '\s[a-z][a-z0-9_-]+(@[^\s]+)?$' \
| tr -d ' ' \
| sed 's/@.*//' \
| tail -1 || true)
if [[ -n "$pkg" ]]; then
add_source "$slug" "npm" "$pkg" "$script"
fi
done
echo ""
echo "=== Method 4: Docker images ==="
# Known Docker-based apps (from docker pull or docker run)
declare -A docker_mappings=(
["homeassistant"]="homeassistant/home-assistant"
["portainer"]="portainer/portainer-ce"
["dockge"]="louislam/dockge"
["immich"]="ghcr.io/immich-app/immich-server"
["audiobookshelf"]="ghcr.io/advplyr/audiobookshelf"
["podman-homeassistant"]="homeassistant/home-assistant"
)
for slug in "${!docker_mappings[@]}"; do
image="${docker_mappings[$slug]}"
if ! echo "$sources_json" | jq -e ".[] | select(.slug == \"$slug\")" > /dev/null 2>&1; then
add_source "$slug" "docker" "$image" "install/${slug}-install.sh"
fi
done
echo ""
echo "=== Method 5: Manual GitHub mappings (apt-based apps) ==="
# Apps that install via apt but have GitHub releases for version tracking
declare -A manual_github_mappings=(
["actualbudget"]="actualbudget/actual"
["apache-cassandra"]="apache/cassandra"
["apache-couchdb"]="apache/couchdb"
["apache-guacamole"]="apache/guacamole-server"
["apache-tomcat"]="apache/tomcat"
["archivebox"]="ArchiveBox/ArchiveBox"
["aria2"]="aria2/aria2"
["asterisk"]="asterisk/asterisk"
["casaos"]="IceWhaleTech/CasaOS"
["checkmk"]="Checkmk/checkmk"
["cloudflared"]="cloudflare/cloudflared"
["coolify"]="coollabsio/coolify"
["crafty-controller"]="crafty-controller/crafty-4"
["cross-seed"]="cross-seed/cross-seed"
["deconz"]="dresden-elektronik/deconz-rest-plugin"
["deluge"]="deluge-torrent/deluge"
["dokploy"]="Dokploy/dokploy"
["emqx"]="emqx/emqx"
["esphome"]="esphome/esphome"
["flowiseai"]="FlowiseAI/Flowise"
["forgejo"]="forgejo/forgejo"
["garage"]="deuxfleurs-org/garage"
["ghost"]="TryGhost/Ghost"
["grafana"]="grafana/grafana"
["graylog"]="Graylog2/graylog2-server"
["homebridge"]="homebridge/homebridge"
["hyperhdr"]="awawa-dev/HyperHDR"
["hyperion"]="hyperion-project/hyperion.ng"
["influxdb"]="influxdata/influxdb"
["iobroker"]="ioBroker/ioBroker"
["jenkins"]="jenkinsci/jenkins"
["komodo"]="moghingold/komodo"
["lazylibrarian"]="lazylibrarian/LazyLibrarian"
["limesurvey"]="LimeSurvey/LimeSurvey"
["mariadb"]="MariaDB/server"
["mattermost"]="mattermost/mattermost"
["meshcentral"]="Ylianst/MeshCentral"
["metabase"]="metabase/metabase"
["mongodb"]="mongodb/mongo"
["mysql"]="mysql/mysql-server"
["neo4j"]="neo4j/neo4j"
["node-red"]="node-red/node-red"
["ntfy"]="binwiederhier/ntfy"
["nzbget"]="nzbgetcom/nzbget"
["octoprint"]="OctoPrint/OctoPrint"
["onedev"]="theonedev/onedev"
["onlyoffice"]="ONLYOFFICE/DocumentServer"
["openhab"]="openhab/openhab-distro"
["openobserve"]="openobserve/openobserve"
["openwebui"]="open-webui/open-webui"
["passbolt"]="passbolt/passbolt_api"
["pihole"]="pi-hole/pi-hole"
["postgresql"]="postgres/postgres"
["rabbitmq"]="rabbitmq/rabbitmq-server"
["readarr"]="Readarr/Readarr"
["redis"]="redis/redis"
["runtipi"]="runtipi/runtipi"
["sftpgo"]="drakkan/sftpgo"
["shinobi"]="ShinobiCCTV/Shinobi"
["sonarqube"]="SonarSource/sonarqube"
["sonarr"]="Sonarr/Sonarr"
["syncthing"]="syncthing/syncthing"
["tdarr"]="HaveAGitGat/Tdarr"
["technitiumdns"]="TechnitiumSoftware/DnsServer"
["transmission"]="transmission/transmission"
["typesense"]="typesense/typesense"
["unmanic"]="Unmanic/unmanic"
["valkey"]="valkey-io/valkey"
["verdaccio"]="verdaccio/verdaccio"
["vikunja"]="go-vikunja/vikunja"
["wazuh"]="wazuh/wazuh"
["wordpress"]="WordPress/WordPress"
["zabbix"]="zabbix/zabbix"
["zammad"]="zammad/zammad"
["zerotier-one"]="zerotier/ZeroTierOne"
# Apps without known GitHub repos (use "-" as placeholder)
["agentdvr"]="-"
["apt-cacher-ng"]="-"
["channels"]="-"
["daemonsync"]="-"
["dotnetaspwebapi"]="-"
["fhem"]="-"
["fileflows"]="-"
["fumadocs"]="-"
["infisical"]="-"
["itsm-ng"]="-"
["jupyternotebook"]="-"
["kasm"]="-"
["lyrionmusicserver"]="-"
["minarca"]="-"
["mqtt"]="-"
["nextcloudpi"]="-"
["nextpvr"]="-"
["notifiarr"]="-"
["nxwitness"]="-"
["omada"]="-"
["omv"]="-"
["plex"]="-"
["podman"]="-"
["readeck"]="-"
["resiliosync"]="-"
["smokeping"]="-"
["splunk-enterprise"]="-"
["sqlserver2022"]="-"
["swizzin"]="-"
["teamspeak-server"]="-"
["twingate-connector"]="-"
["unifi"]="-"
["urbackupserver"]="-"
["yunohost"]="-"
)
for slug in "${!manual_github_mappings[@]}"; do
repo="${manual_github_mappings[$slug]}"
if ! echo "$sources_json" | jq -e ".[] | select(.slug == \"$slug\")" > /dev/null 2>&1; then
# Skip placeholder entries in extraction, they get added in Method 8
[[ "$repo" == "-" ]] && continue
add_source "$slug" "github" "$repo" "install/${slug}-install.sh"
fi
done
echo ""
echo "=== Method 6: Proxmox LXC templates ==="
# Base OS versions from Proxmox template index
declare -A pveam_mappings=(
["debian"]="pveam:debian"
["ubuntu"]="pveam:ubuntu"
["alpine"]="pveam:alpine"
)
for slug in "${!pveam_mappings[@]}"; do
template="${pveam_mappings[$slug]}"
if ! echo "$sources_json" | jq -e ".[] | select(.slug == \"$slug\")" > /dev/null 2>&1; then
add_source "$slug" "pveam" "$template" "ct/${slug}.sh"
fi
done
echo ""
echo "=== Method 7: Special sources ==="
# Home Assistant OS VM
if ! echo "$sources_json" | jq -e ".[] | select(.slug == \"haos-vm\")" > /dev/null 2>&1; then
add_source "haos-vm" "github" "home-assistant/operating-system" "vm/haos-vm.sh"
fi
echo ""
echo "=== Method 8: Unknown/Manual apps ==="
# Apps without known version sources - add with type "manual" for manual updates
unknown_apps=(
"agentdvr" "apt-cacher-ng" "channels" "daemonsync" "dotnetaspwebapi"
"fhem" "fileflows" "fumadocs" "infisical" "itsm-ng" "jupyternotebook"
"kasm" "lyrionmusicserver" "minarca" "mqtt" "nextcloudpi" "nextpvr"
"notifiarr" "nxwitness" "omada" "omv" "plex" "podman" "readeck"
"resiliosync" "smokeping" "splunk-enterprise" "sqlserver2022" "swizzin"
"teamspeak-server" "twingate-connector" "unifi" "urbackupserver" "yunohost"
)
for slug in "${unknown_apps[@]}"; do
if ! echo "$sources_json" | jq -e ".[] | select(.slug == \"$slug\")" > /dev/null 2>&1; then
add_source "$slug" "manual" "-" "install/${slug}-install.sh"
fi
done
# Save sources file
echo "$sources_json" | jq --arg date "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
'{generated: $date, sources: (. | sort_by(.slug))}' > "$SOURCES_FILE"
total=$(echo "$sources_json" | jq 'length')
echo ""
echo "========================================="
echo " Total sources extracted: $total"
echo "========================================="
- name: Fetch versions for all sources
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
set -euo pipefail
echo "========================================="
echo " Fetching versions from sources"
echo "========================================="
success=0
failed=0
manual=0
total=$(jq '.sources | length' "$SOURCES_FILE")
# Process each source
for i in $(seq 0 $((total - 1))); do
entry=$(jq -r ".sources[$i]" "$SOURCES_FILE")
slug=$(echo "$entry" | jq -r '.slug')
type=$(echo "$entry" | jq -r '.type')
source=$(echo "$entry" | jq -r '.source')
echo -n "[$((i+1))/$total] $slug ($type: $source) ... "
version=""
date=""
case "$type" in
github)
# Try releases first
response=$(gh api "repos/${source}/releases/latest" 2>/dev/null || echo '{"message": "Not Found"}')
if echo "$response" | jq -e '.tag_name' > /dev/null 2>&1; then
version=$(echo "$response" | jq -r '.tag_name')
date=$(echo "$response" | jq -r '.published_at // empty')
else
# Fallback to tags
version=$(gh api "repos/${source}/tags" --jq '.[0].name // empty' 2>/dev/null || echo "")
fi
;;
npm)
response=$(curl -fsSL "https://registry.npmjs.org/${source}/latest" 2>/dev/null || echo '{}')
version=$(echo "$response" | jq -r '.version // empty')
;;
docker)
if [[ "$source" == ghcr.io/* ]]; then
# GitHub Container Registry
ghcr_path="${source#ghcr.io/}"
owner="${ghcr_path%%/*}"
pkg="${ghcr_path##*/}"
version=$(gh api "users/${owner}/packages/container/${pkg}/versions" --jq '.[0].metadata.container.tags[] | select(. != "latest")' 2>/dev/null | head -1 || echo "")
else
# Docker Hub
version=$(curl -fsSL "https://hub.docker.com/v2/repositories/${source}/tags?page_size=10&ordering=last_updated" 2>/dev/null \
| jq -r '.results[] | select(.name != "latest") | .name' | head -1 || echo "")
fi
;;
pveam)
# Proxmox LXC template versions from download.proxmox.com
os_name="${source#pveam:}"
# Fetch the template index and get latest version
version=$(curl -fsSL "http://download.proxmox.com/images/system/" 2>/dev/null \
| grep -oE "${os_name}-[0-9]+\.[0-9]+-default_[0-9]+_amd64" \
| sed "s/${os_name}-//" | sed 's/-default.*//' \
| sort -V | tail -1 || echo "")
;;
manual)
# Manual entries - no automatic version fetching
# These need to be updated manually or have their source type changed
version="-"
((manual++))
echo -n "(manual) "
;;
esac
if [[ -n "$version" && "$version" != "null" ]]; then
# Update the source entry with version
jq --arg idx "$i" --arg version "$version" --arg date "${date:-}" \
'.sources[$idx | tonumber].version = $version | .sources[$idx | tonumber].date = $date' \
"$SOURCES_FILE" > "${SOURCES_FILE}.tmp" && mv "${SOURCES_FILE}.tmp" "$SOURCES_FILE"
echo "✓ $version"
((success++))
else
echo "⚠ no version found"
((failed++))
fi
done
echo ""
echo "========================================="
echo " SUMMARY"
echo "========================================="
echo "Success: $success (automated)"
echo "Manual: $manual (placeholder)"
echo "Failed: $failed"
echo "Total: $total"
echo "========================================="
- name: Generate versions.json for compatibility
run: |
# Convert version-sources.json to versions.json format for backward compatibility
jq '[.sources[] | select(.version != null) | {name: .source, version: .version, date: .date}]' \
"$SOURCES_FILE" > "$VERSIONS_FILE"
echo "Generated versions.json with $(jq length "$VERSIONS_FILE") entries"
- name: Check for changes
id: check-changes
run: |
if git diff --quiet "$SOURCES_FILE" "$VERSIONS_FILE" 2>/dev/null; then
echo "changed=false" >> "$GITHUB_OUTPUT"
echo "No changes detected"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
echo "Changes detected:"
git diff --stat "$SOURCES_FILE" "$VERSIONS_FILE" 2>/dev/null || true
fi
- name: Create Pull Request
if: steps.check-changes.outputs.changed == 'true'
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
BRANCH_NAME="automated/update-versions-$(date +%Y%m%d)"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions[bot]"
# Check if branch exists and delete it
git push origin --delete "$BRANCH_NAME" 2>/dev/null || true
git checkout -b "$BRANCH_NAME"
git add "$SOURCES_FILE" "$VERSIONS_FILE"
git commit -m "chore: update version-sources.json and versions.json
Sources: $(jq '.sources | length' "$SOURCES_FILE")
With versions: $(jq '[.sources[] | select(.version != null)] | length' "$SOURCES_FILE")
Generated: $(jq -r '.generated' "$SOURCES_FILE")"
git push origin "$BRANCH_NAME" --force
# Check if PR already exists
existing_pr=$(gh pr list --head "$BRANCH_NAME" --state open --json number --jq '.[0].number // empty')
if [[ -n "$existing_pr" ]]; then
echo "PR #$existing_pr already exists, updating..."
else
gh pr create \
--title "[Automated] Update version-sources.json" \
--body "This PR updates version information from multiple sources.
## Sources
- **GitHub Releases**: Direct from \`fetch_and_deploy_gh_release\` calls
- **GitHub URLs**: Extracted from install scripts
- **npm Registry**: For Node.js based apps
- **Docker Hub/GHCR**: For container-based apps
## Stats
- Total sources: $(jq '.sources | length' "$SOURCES_FILE")
- With versions: $(jq '[.sources[] | select(.version != null)] | length' "$SOURCES_FILE")
---
*Automatically generated from install scripts*" \
--base main \
--head "$BRANCH_NAME" \
--label "automated pr"
fi
- name: Auto-approve PR
if: steps.check-changes.outputs.changed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH_NAME="automated/update-versions-$(date +%Y%m%d)"
pr_number=$(gh pr list --head "$BRANCH_NAME" --state open --json number --jq '.[0].number')
if [[ -n "$pr_number" ]]; then
gh pr review "$pr_number" --approve
fi

View File

@ -12,6 +12,25 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2025-12-16
### 🆕 New Scripts
- [REFACTOR]: NetVisor => Scanopy [@vhsdream](https://github.com/vhsdream) ([#10011](https://github.com/community-scripts/ProxmoxVE/pull/10011))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Miniflux: use correct systemctl to check service instead of file path [@MickLesk](https://github.com/MickLesk) ([#10024](https://github.com/community-scripts/ProxmoxVE/pull/10024))
- 2fauth: bump to php8.4 [@MickLesk](https://github.com/MickLesk) ([#10019](https://github.com/community-scripts/ProxmoxVE/pull/10019))
- PhotoPrism: export env variables for CLI tools [@MickLesk](https://github.com/MickLesk) ([#10023](https://github.com/community-scripts/ProxmoxVE/pull/10023))
### 💾 Core
- #### ✨ New Features
- tools.func: add optional enabled parameter to setup_deb822_repo [@MickLesk](https://github.com/MickLesk) ([#10017](https://github.com/community-scripts/ProxmoxVE/pull/10017))
- core: map Etc/* timezones to 'host' for pct compatibility [@MickLesk](https://github.com/MickLesk) ([#10020](https://github.com/community-scripts/ProxmoxVE/pull/10020))
## 2025-12-15
### 🆕 New Scripts

View File

@ -1,6 +1,6 @@
_ __ __ _ ___
/ | / /__ / /| | / (_)________ _____
/ |/ / _ \/ __/ | / / / ___/ __ \/ ___/
/ /| / __/ /_ | |/ / (__ ) /_/ / /
/_/ |_/\___/\__/ |___/_/____/\____/_/
_____
/ ___/_________ _____ ____ ____ __ __
\__ \/ ___/ __ `/ __ \/ __ \/ __ \/ / / /
___/ / /__/ /_/ / / / / /_/ / /_/ / /_/ /
/____/\___/\__,_/_/ /_/\____/ .___/\__, /
/_/ /____/

6
ct/headers/scanopy Normal file
View File

@ -0,0 +1,6 @@
_____
/ ___/_________ _____ ____ ____ __ __
\__ \/ ___/ __ `/ __ \/ __ \/ __ \/ / / /
___/ / /__/ /_/ / / / / /_/ / /_/ / /_/ /
/____/\___/\__,_/_/ /_/\____/ .___/\__, /
/_/ /____/

View File

@ -23,7 +23,7 @@ function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /etc/systemd/system/miniflux.service ]]; then
if ! systemctl -q is-enabled miniflux 2>/dev/null; then
msg_error "No ${APP} Installation Found!"
exit
fi

View File

@ -3,9 +3,9 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
# Copyright (c) 2021-2025 community-scripts ORG
# Author: vhsdream
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/netvisor-io/netvisor
# Source: https://github.com/scanopy/scanopy
APP="NetVisor"
APP="Scanopy"
var_tags="${var_tags:-analytics}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-3072}"
@ -29,71 +29,74 @@ function update_script() {
exit
fi
if check_for_gh_release "netvisor" "netvisor-io/netvisor"; then
msg_info "Stopping services"
systemctl stop netvisor-daemon netvisor-server
msg_ok "Stopped services"
msg_info "Stopping services"
systemctl -q disable --now netvisor-daemon netvisor-server
msg_ok "Stopped services"
msg_info "Backing up configurations"
cp /opt/netvisor/.env /opt/netvisor.env.bak
if [[ -f /opt/netvisor/oidc.toml ]]; then
cp /opt/netvisor/oidc.toml /opt/netvisor.oidc.toml
fi
msg_ok "Backed up configurations"
NODE_VERSION="24" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "scanopy" "scanopy/scanopy" "tarball" "latest" "/opt/scanopy"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "netvisor" "netvisor-io/netvisor" "tarball" "latest" "/opt/netvisor"
if ! dpkg -l | grep -q "pkg-config"; then
$STD apt install -y pkg-config
fi
if ! dpkg -l | grep -q "libssl-dev"; then
$STD apt install -y libssl-dev
fi
TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
mv /opt/netvisor.env.bak /opt/netvisor/.env
if [[ -f /opt/netvisor.oidc.toml ]]; then
mv /opt/netvisor.oidc.toml /opt/netvisor/oidc.toml
fi
LOCAL_IP="$(hostname -I | awk '{print $1}')"
if ! grep -q "PUBLIC_URL" /opt/netvisor/.env; then
sed -i "\|_PATH=|a\NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/netvisor/.env
fi
sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/netvisor/.env
msg_info "Creating frontend UI"
export PUBLIC_SERVER_HOSTNAME=default
export PUBLIC_SERVER_PORT=""
cd /opt/netvisor/ui
$STD npm ci --no-fund --no-audit
$STD npm run build
msg_ok "Created frontend UI"
msg_info "Building Netvisor-server (patience)"
cd /opt/netvisor/backend
$STD cargo build --release --bin server
mv ./target/release/server /usr/bin/netvisor-server
msg_ok "Built Netvisor-server"
msg_info "Building Netvisor-daemon"
$STD cargo build --release --bin daemon
cp ./target/release/daemon /usr/bin/netvisor-daemon
msg_ok "Built Netvisor-daemon"
sed -i -e 's|-target|-url|' \
-e 's| --server-port |:|' \
/etc/systemd/system/netvisor-daemon.service
sed -i '/^ \"server_target.*$/d' /root/.config/daemon/config.json
if ! grep -q "WorkingD" /etc/systemd/system/netvisor-server.service; then
sed -i '\|simple$|a\WorkingDirectory=/opt/netvisor/backend' /etc/systemd/system/netvisor-server.service
fi
systemctl daemon-reload
msg_info "Starting services"
systemctl start netvisor-server netvisor-daemon
msg_ok "Updated successfully!"
if ! dpkg -l | grep -q "pkg-config"; then
$STD apt install -y pkg-config
fi
if ! dpkg -l | grep -q "libssl-dev"; then
$STD apt install -y libssl-dev
fi
TOOLCHAIN="$(grep "channel" /opt/scanopy/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
mv /opt/netvisor/.env /opt/scanopy/.env
if [[ -f /opt/netvisor/oidc.toml ]]; then
mv /opt/netvisor/oidc.toml /opt/scanopy/oidc.toml
fi
LOCAL_IP="$(hostname -I | awk '{print $1}')"
if ! grep -q "PUBLIC_URL" /opt/scanopy/.env; then
sed -i "\|_PATH=|a\NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/scanopy/.env
fi
sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/scanopy/.env
sed -i 's/NETVISOR/SCANOPY/g; s|netvisor/|scanopy/|' /opt/scanopy/.env
msg_info "Creating frontend UI"
export PUBLIC_SERVER_HOSTNAME=default
export PUBLIC_SERVER_PORT=""
cd /opt/scanopy/ui
$STD npm ci --no-fund --no-audit
$STD npm run build
msg_ok "Created frontend UI"
msg_info "Building Scanopy-server (patience)"
cd /opt/scanopy/backend
$STD cargo build --release --bin server
mv ./target/release/server /usr/bin/scanopy-server
msg_ok "Built Scanopy-server"
msg_info "Building Scanopy-daemon"
$STD cargo build --release --bin daemon
cp ./target/release/daemon /usr/bin/scanopy-daemon
msg_ok "Built Scanopy-daemon"
sed -i '/^ \"server_target.*$/d' /root/.config/daemon/config.json
sed -i -e 's|-target|-url|' \
-e 's| --server-port |:|' \
-e 's/NetVisor/Scanopy/' \
-e 's/netvisor/scanopy/' \
/etc/systemd/system/netvisor-daemon.service
mv /etc/systemd/system/netvisor-daemon.service /etc/systemd/system/scanopy-daemon.service
sed -i -e 's/NetVisor/Scanopy/' \
-e 's/netvisor/scanopy/g' \
/etc/systemd/system/netvisor-server.service
mv /etc/systemd/system/netvisor-server.service /etc/systemd/system/scanopy-server.service
systemctl daemon-reload
msg_info "Starting services"
systemctl -q enable --now scanopy-server scanopy-daemon
msg_ok "Updated successfully!"
sed -i 's/netvisor/scanopy/' /usr/bin/update
mv ~/NetVisor.creds ~/scanopy.creds
rm ~/.netvisor
rm -rf /opt/netvisor
exit
}

View File

@ -31,6 +31,13 @@ function update_script() {
msg_info "Stopping PhotoPrism"
systemctl stop photoprism
msg_ok "Stopped PhotoPrism"
if ! grep -q "photoprism/config/.env" ~/.bashrc 2>/dev/null; then
msg_info "Adding environment export for CLI tools"
echo '# Load PhotoPrism environment variables for CLI tools' >>~/.bashrc
echo 'export $(grep -v "^#" /opt/photoprism/config/.env | xargs)' >>~/.bashrc
msg_ok "Added environment export"
fi
fetch_and_deploy_gh_release "photoprism" "photoprism/photoprism" "prebuild" "latest" "/opt/photoprism" "*linux-amd64.tar.gz"

99
ct/scanopy.sh Normal file
View File

@ -0,0 +1,99 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: vhsdream
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/scanopy/scanopy
APP="Scanopy"
var_tags="${var_tags:-analytics}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-3072}"
var_disk="${var_disk:-6}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
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/scanopy ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "scanopy" "scanopy-io/scanopy"; then
msg_info "Stopping services"
systemctl stop scanopy-daemon scanopy-server
msg_ok "Stopped services"
msg_info "Backing up configurations"
cp /opt/scanopy/.env /opt/scanopy.env.bak
if [[ -f /opt/scanopy/oidc.toml ]]; then
cp /opt/scanopy/oidc.toml /opt/scanopy.oidc.toml
fi
msg_ok "Backed up configurations"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "scanopy" "scanopy/scanopy" "tarball" "latest" "/opt/scanopy"
if ! dpkg -l | grep -q "pkg-config"; then
$STD apt install -y pkg-config
fi
if ! dpkg -l | grep -q "libssl-dev"; then
$STD apt install -y libssl-dev
fi
TOOLCHAIN="$(grep "channel" /opt/scanopy/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
mv /opt/scanopy.env.bak /opt/scanopy/.env
if [[ -f /opt/scanopy.oidc.toml ]]; then
mv /opt/scanopy.oidc.toml /opt/scanopy/oidc.toml
fi
LOCAL_IP="$(hostname -I | awk '{print $1}')"
if ! grep -q "PUBLIC_URL" /opt/scanopy/.env; then
sed -i "\|_PATH=|a\scanopy_PUBLIC_URL=http://${LOCAL_IP}:60072" /opt/scanopy/.env
fi
sed -i 's|_TARGET=.*$|_URL=http://127.0.0.1:60072|' /opt/scanopy/.env
msg_info "Creating frontend UI"
export PUBLIC_SERVER_HOSTNAME=default
export PUBLIC_SERVER_PORT=""
cd /opt/scanopy/ui
$STD npm ci --no-fund --no-audit
$STD npm run build
msg_ok "Created frontend UI"
msg_info "Building scanopy-server (patience)"
cd /opt/scanopy/backend
$STD cargo build --release --bin server
mv ./target/release/server /usr/bin/scanopy-server
msg_ok "Built scanopy-server"
msg_info "Building scanopy-daemon"
$STD cargo build --release --bin daemon
cp ./target/release/daemon /usr/bin/scanopy-daemon
msg_ok "Built scanopy-daemon"
msg_info "Starting services"
systemctl start scanopy-server scanopy-daemon
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}:60072${CL}"
echo -e "${INFO}${YW} Then create your account, and run the 'configure_daemon.sh' script to setup the daemon.${CL}"

View File

@ -1,6 +1,6 @@
{
"name": "NetVisor",
"slug": "netvisor",
"name": "Scanopy",
"slug": "scanopy",
"categories": [
9
],
@ -9,15 +9,15 @@
"updateable": true,
"privileged": false,
"interface_port": 60072,
"documentation": "https://github.com/netvisor-io/netvisor",
"config_path": "/opt/netvisor/.env, OIDC: /opt/netvisor/oidc.toml",
"website": "https://netvisor.io",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/png/netvisor.png",
"documentation": "https://github.com/scanopy/scanopy",
"config_path": "/opt/scanopy/.env, OIDC: /opt/scanopy/oidc.toml",
"website": "https://scanopy.net",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/scanopy.webp",
"description": "Automatically discover and visually document network infrastructure",
"install_methods": [
{
"type": "default",
"script": "ct/netvisor.sh",
"script": "ct/scanopy.sh",
"resources": {
"cpu": 2,
"ram": 3072,

View File

@ -1,4 +1,89 @@
[
{
"name": "jenkinsci/jenkins",
"version": "jenkins-2.542",
"date": "2025-12-16T11:28:32Z"
},
{
"name": "zabbix/zabbix",
"version": "7.2.15rc2",
"date": "2025-12-16T10:23:14Z"
},
{
"name": "prometheus/prometheus",
"version": "v3.8.1",
"date": "2025-12-16T09:59:22Z"
},
{
"name": "rcourtman/Pulse",
"version": "v4.36.2",
"date": "2025-12-03T22:46:29Z"
},
{
"name": "n8n-io/n8n",
"version": "n8n@1.123.6",
"date": "2025-12-15T14:22:59Z"
},
{
"name": "sabnzbd/sabnzbd",
"version": "4.5.5",
"date": "2025-10-24T11:12:22Z"
},
{
"name": "mattermost/mattermost",
"version": "v11.2.1",
"date": "2025-12-16T07:40:44Z"
},
{
"name": "jupyter/notebook",
"version": "v7.5.1",
"date": "2025-12-16T07:39:08Z"
},
{
"name": "morpheus65535/bazarr",
"version": "v1.5.3",
"date": "2025-09-20T12:12:33Z"
},
{
"name": "Jackett/Jackett",
"version": "v0.24.457",
"date": "2025-12-16T05:57:07Z"
},
{
"name": "firefly-iii/firefly-iii",
"version": "v6.4.14",
"date": "2025-12-16T05:42:34Z"
},
{
"name": "goauthentik/authentik",
"version": "version/2025.10.2",
"date": "2025-11-19T15:08:41Z"
},
{
"name": "ollama/ollama",
"version": "v0.13.4-rc2",
"date": "2025-12-16T02:57:20Z"
},
{
"name": "jeedom/core",
"version": "4.5",
"date": "2025-12-16T00:27:09Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v4.1.0",
"date": "2025-11-23T12:13:34Z"
},
{
"name": "Stirling-Tools/Stirling-PDF",
"version": "v2.1.4",
"date": "2025-12-16T00:02:18Z"
},
{
"name": "esphome/esphome",
"version": "2025.11.5",
"date": "2025-12-09T17:54:33Z"
},
{
"name": "scanopy/scanopy",
"version": "v0.12.1",
@ -9,11 +94,6 @@
"version": "v2.16.46",
"date": "2025-12-15T22:07:08Z"
},
{
"name": "mattermost/mattermost",
"version": "mattermost-redux@11.2.0",
"date": "2025-12-15T20:37:15Z"
},
{
"name": "metabase/metabase",
"version": "v0.57.x",
@ -34,6 +114,11 @@
"version": "v4.1.0",
"date": "2025-12-15T18:53:25Z"
},
{
"name": "keycloak/keycloak",
"version": "26.4.7",
"date": "2025-12-01T08:14:11Z"
},
{
"name": "rabbitmq/rabbitmq-server",
"version": "v4.2.2",
@ -49,16 +134,6 @@
"version": "v0.30.0",
"date": "2025-12-15T17:23:59Z"
},
{
"name": "n8n-io/n8n",
"version": "n8n@1.123.6",
"date": "2025-12-15T14:22:59Z"
},
{
"name": "rcourtman/Pulse",
"version": "v4.36.2",
"date": "2025-12-03T22:46:29Z"
},
{
"name": "danielbrendel/hortusfox-web",
"version": "v5.6",
@ -69,11 +144,6 @@
"version": "25.12.0",
"date": "2025-12-15T14:06:00Z"
},
{
"name": "firefly-iii/firefly-iii",
"version": "v6.4.11",
"date": "2025-12-15T08:01:35Z"
},
{
"name": "tailscale/tailscale",
"version": "v1.92.2",
@ -119,36 +189,11 @@
"version": "v6.0.4.10291",
"date": "2025-11-16T22:39:01Z"
},
{
"name": "morpheus65535/bazarr",
"version": "v1.5.3",
"date": "2025-09-20T12:12:33Z"
},
{
"name": "Jackett/Jackett",
"version": "v0.24.454",
"date": "2025-12-15T05:54:27Z"
},
{
"name": "jellyfin/jellyfin",
"version": "v10.11.5",
"date": "2025-12-15T02:44:19Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v4.1.0",
"date": "2025-11-23T12:13:34Z"
},
{
"name": "jeedom/core",
"version": "4.5",
"date": "2025-12-15T00:27:03Z"
},
{
"name": "esphome/esphome",
"version": "2025.11.5",
"date": "2025-12-09T17:54:33Z"
},
{
"name": "9001/copyparty",
"version": "v1.19.22",
@ -284,11 +329,6 @@
"version": "v0.88.0",
"date": "2025-12-13T09:36:24Z"
},
{
"name": "ollama/ollama",
"version": "v0.13.4-rc0",
"date": "2025-12-13T00:29:01Z"
},
{
"name": "Dokploy/dokploy",
"version": "v0.26.2",
@ -339,11 +379,6 @@
"version": "v1.14.1",
"date": "2025-12-12T17:37:58Z"
},
{
"name": "keycloak/keycloak",
"version": "26.4.7",
"date": "2025-12-01T08:14:11Z"
},
{
"name": "node-red/node-red",
"version": "4.1.2",
@ -419,16 +454,6 @@
"version": "v1.30.22",
"date": "2025-12-11T18:02:06Z"
},
{
"name": "Stirling-Tools/Stirling-PDF",
"version": "v2.1.3",
"date": "2025-12-11T13:31:56Z"
},
{
"name": "zabbix/zabbix",
"version": "7.4.6rc1",
"date": "2025-12-11T12:01:51Z"
},
{
"name": "pommee/goaway",
"version": "v0.62.24",
@ -454,11 +479,6 @@
"version": "v1.8.0",
"date": "2025-12-10T16:44:33Z"
},
{
"name": "jenkinsci/jenkins",
"version": "jenkins-2.541",
"date": "2025-12-10T15:57:13Z"
},
{
"name": "rclone/rclone",
"version": "v1.72.1",
@ -559,11 +579,6 @@
"version": "preview-test-fix-subscriptions",
"date": "2025-12-08T23:15:30Z"
},
{
"name": "sabnzbd/sabnzbd",
"version": "4.5.5",
"date": "2025-10-24T11:12:22Z"
},
{
"name": "hansmi/prometheus-paperless-exporter",
"version": "v0.0.9",
@ -764,11 +779,6 @@
"version": "v5.0.0",
"date": "2025-12-02T10:33:31Z"
},
{
"name": "prometheus/prometheus",
"version": "v3.8.0",
"date": "2025-12-02T10:11:05Z"
},
{
"name": "neo4j/neo4j",
"version": "5.26.18",
@ -1044,21 +1054,11 @@
"version": "v12.3.0",
"date": "2025-11-19T15:15:43Z"
},
{
"name": "goauthentik/authentik",
"version": "version/2025.10.2",
"date": "2025-11-19T15:08:41Z"
},
{
"name": "hivemq/hivemq-community-edition",
"version": "2025.5",
"date": "2025-11-19T14:48:47Z"
},
{
"name": "jupyter/notebook",
"version": "v7.5.0",
"date": "2025-11-19T08:36:29Z"
},
{
"name": "PatchMon/PatchMon",
"version": "v1.3.6",

View File

@ -17,7 +17,8 @@ msg_info "Installing Dependencies"
$STD apt install -y nginx
msg_ok "Installed Dependencies"
PHP_VERSION="8.3" PHP_MODULE="common,ctype,fileinfo,mysql,cli,tokenizer,dom,redis,session,openssl" PHP_FPM="YES" setup_php
PHP_VERSION="8.4"
PHP_MODULE="common,ctype,fileinfo,mysql,tokenizer,dom,redis" PHP_FPM="YES" setup_php
setup_composer
setup_mariadb
MARIADB_DB_NAME="2fauth_db" MARIADB_DB_USER="2fauth" setup_mariadb_db
@ -65,7 +66,7 @@ server {
error_page 404 /index.php;
location ~ \.php\$ {
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_pass unix:/var/run/php/php${PHP_VERSION}-fpm.sock;
fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name;
include fastcgi_params;
}

View File

@ -1,142 +0,0 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 community-scripts ORG
# Author: vhsdream
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/netvisor-io/netvisor
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 \
libssl-dev \
pkg-config
msg_ok "Installed Dependencies"
PG_VERSION=17 setup_postgresql
NODE_VERSION="24" setup_nodejs
PG_DB_NAME="netvisor_db" PG_DB_USER="netvisor" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
fetch_and_deploy_gh_release "netvisor" "netvisor-io/netvisor" "tarball" "latest" "/opt/netvisor"
TOOLCHAIN="$(grep "channel" /opt/netvisor/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
msg_info "Creating frontend UI"
export PUBLIC_SERVER_HOSTNAME=default
export PUBLIC_SERVER_PORT=""
cd /opt/netvisor/ui
$STD npm ci --no-fund --no-audit
$STD npm run build
msg_ok "Created frontend UI"
msg_info "Building Netvisor-server (patience)"
cd /opt/netvisor/backend
$STD cargo build --release --bin server
mv ./target/release/server /usr/bin/netvisor-server
msg_ok "Built Netvisor-server"
msg_info "Building Netvisor-daemon"
$STD cargo build --release --bin daemon
cp ./target/release/daemon /usr/bin/netvisor-daemon
msg_ok "Built Netvisor-daemon"
msg_info "Configuring server for first-run"
LOCAL_IP="$(hostname -I | awk '{print $1}')"
cat <<EOF >/opt/netvisor/.env
### - SERVER
NETVISOR_DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME
NETVISOR_WEB_EXTERNAL_PATH="/opt/netvisor/ui/build"
NETVISOR_PUBLIC_URL=http://${LOCAL_IP}:60072
NETVISOR_SERVER_PORT=60072
NETVISOR_LOG_LEVEL=info
NETVISOR_INTEGRATED_DAEMON_URL=http://127.0.0.1:60073
## - uncomment to disable signups
# NETVISOR_DISABLE_REGISTRATION=true
## - uncomment when using TLS
# NETVISOR_USE_SECURE_SESSION_COOKIES=true
## - see https://github.com/imbolc/axum-client-ip?tab=readme-ov-file#configurable-vs-specific-extractors
## - before uncommenting the below
# NETVISOR_CLIENT_IP_SOURCE=
### - SMTP (password reset and notifications - optional)
# NETVISOR_SMTP_RELAY=smtp.gmail.com:587
# NETVISOR_SMTP_USERNAME=your-email@gmail.com
# NETVISOR_SMTP_PASSWORD=your-app-password
# NETVISOR_SMTP_EMAIL=netvisor@yourdomain.tld
### - INTEGRATED DAEMON
NETVISOR_SERVER_URL=http://127.0.0.1:60072
NETVISOR_BIND_ADDRESS=0.0.0.0
NETVISOR_NAME="netvisor-daemon"
NETVISOR_HEARTBEAT_INTERVAL=30
### - see https://github.com/netvisor-io/netvisor/blob/main/docs/CONFIGURATION.md for more options
EOF
cat <<EOF >/etc/systemd/system/netvisor-server.service
[Unit]
Description=NetVisor Network Discovery Server
After=network.target postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/netvisor/backend
EnvironmentFile=/opt/netvisor/.env
ExecStart=/usr/bin/netvisor-server
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now netvisor-server
# Creating short script to configure netvisor-daemon
cat <<EOF >~/configure_daemon.sh
#!/usr/bin/env bash
echo "Auto-configuring integrated daemon..."
NETWORK_ID="\$(sudo -u postgres psql -1 -t -d "${PG_DB_NAME}" -c 'SELECT id FROM networks;')"
API_KEY="\$(sudo -u postgres psql -1 -t -d "${PG_DB_NAME}" -c 'SELECT key FROM api_keys;')"
cat <<END >/etc/systemd/system/netvisor-daemon.service
[Unit]
Description=NetVisor Network Discovery Daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/netvisor-daemon --server-url http://127.0.0.1:60072 --network-id \${NETWORK_ID} --daemon-api-key \${API_KEY} --mode push
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
END
systemctl enable -q --now netvisor-daemon
echo "NetVisor daemon configured and running"
EOF
chmod +x ~/configure_daemon.sh
msg_ok "Netvisor server running - please create an account in the UI to continue."
motd_ssh
customize
cleanup_lxc

View File

@ -28,6 +28,8 @@ $STD apt install -y \
lsb-release
echo 'export PATH=/usr/local:$PATH' >>~/.bashrc
echo '# Load PhotoPrism environment variables for CLI tools' >>~/.bashrc
echo 'export $(grep -v "^#" /opt/photoprism/config/.env | xargs)' >>~/.bashrc
export PATH=/usr/local:$PATH
msg_ok "Installed Dependencies"

140
install/scanopy-install.sh Normal file
View File

@ -0,0 +1,140 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 community-scripts ORG
# Author: vhsdream
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/scanopy/scanopy
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 \
libssl-dev \
pkg-config
msg_ok "Installed Dependencies"
PG_VERSION=17 setup_postgresql
NODE_VERSION="24" setup_nodejs
PG_DB_NAME="scanopy_db" PG_DB_USER="scanopy" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
fetch_and_deploy_gh_release "scanopy" "scanopy/scanopy" "tarball" "latest" "/opt/scanopy"
TOOLCHAIN="$(grep "channel" /opt/scanopy/backend/rust-toolchain.toml | awk -F\" '{print $2}')"
RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
msg_info "Creating frontend UI"
export PUBLIC_SERVER_HOSTNAME=default
export PUBLIC_SERVER_PORT=""
cd /opt/scanopy/ui
$STD npm ci --no-fund --no-audit
$STD npm run build
msg_ok "Created frontend UI"
msg_info "Building scanopy-server (patience)"
cd /opt/scanopy/backend
$STD cargo build --release --bin server
mv ./target/release/server /usr/bin/scanopy-server
msg_ok "Built scanopy-server"
msg_info "Building scanopy-daemon"
$STD cargo build --release --bin daemon
cp ./target/release/daemon /usr/bin/scanopy-daemon
msg_ok "Built scanopy-daemon"
msg_info "Configuring server for first-run"
LOCAL_IP="$(hostname -I | awk '{print $1}')"
cat <<EOF >/opt/scanopy/.env
### - SERVER
scanopy_DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME
scanopy_WEB_EXTERNAL_PATH="/opt/scanopy/ui/build"
scanopy_PUBLIC_URL=http://${LOCAL_IP}:60072
scanopy_SERVER_PORT=60072
scanopy_LOG_LEVEL=info
scanopy_INTEGRATED_DAEMON_URL=http://127.0.0.1:60073
## - uncomment to disable signups
# scanopy_DISABLE_REGISTRATION=true
## - uncomment when using TLS
# scanopy_USE_SECURE_SESSION_COOKIES=true
## - see https://github.com/imbolc/axum-client-ip?tab=readme-ov-file#configurable-vs-specific-extractors
## - before uncommenting the below
# scanopy_CLIENT_IP_SOURCE=
### - SMTP (password reset and notifications - optional)
# scanopy_SMTP_RELAY=smtp.gmail.com:587
# scanopy_SMTP_USERNAME=your-email@gmail.com
# scanopy_SMTP_PASSWORD=your-app-password
# scanopy_SMTP_EMAIL=scanopy@yourdomain.tld
### - INTEGRATED DAEMON
scanopy_SERVER_URL=http://127.0.0.1:60072
scanopy_BIND_ADDRESS=0.0.0.0
scanopy_NAME="scanopy-daemon"
scanopy_HEARTBEAT_INTERVAL=30
### - see https://github.com/scanopy/scanopy/blob/main/docs/CONFIGURATION.md for more options
EOF
cat <<EOF >/etc/systemd/system/scanopy-server.service
[Unit]
Description=Scanopy Network Discovery Server
After=network.target postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/scanopy/backend
EnvironmentFile=/opt/scanopy/.env
ExecStart=/usr/bin/scanopy-server
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now scanopy-server
# Creating short script to configure scanopy-daemon
cat <<EOF >~/configure_daemon.sh
#!/usr/bin/env bash
echo "Auto-configuring integrated daemon..."
NETWORK_ID="\$(sudo -u postgres psql -1 -t -d "${PG_DB_NAME}" -c 'SELECT id FROM networks;')"
API_KEY="\$(sudo -u postgres psql -1 -t -d "${PG_DB_NAME}" -c 'SELECT key FROM api_keys;')"
cat <<END >/etc/systemd/system/scanopy-daemon.service
[Unit]
Description=Scanopy Network Discovery Daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/scanopy-daemon --server-url http://127.0.0.1:60072 --network-id \${NETWORK_ID} --daemon-api-key \${API_KEY} --mode push
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
END
systemctl enable -q --now scanopy-daemon
echo "Scanopy daemon configured and running"
EOF
chmod +x ~/configure_daemon.sh
msg_ok "Scanopy server running - please create an account in the UI to continue."
motd_ssh
customize
cleanup_lxc

View File

@ -440,6 +440,7 @@ base_settings() {
ENABLE_MKNOD=${var_mknod:-"0"}
PROTECT_CT=${var_protection:-"no"}
CT_TIMEZONE=${var_timezone:-"$timezone"}
[[ "${CT_TIMEZONE:-}" == Etc/* ]] && CT_TIMEZONE="host" # pct doesn't accept Etc/* zones
# Since these 2 are only defined outside of default_settings function, we add a temporary fallback. TODO: To align everything, we should add these as constant variables (e.g. OSTYPE and OSVERSION), but that would currently require updating the default_settings function for all existing scripts
if [ -z "$var_os" ]; then
@ -1072,7 +1073,10 @@ advanced_settings() {
elif [ -f /etc/timezone ]; then
_host_timezone=$(cat /etc/timezone 2>/dev/null || echo "")
fi
# Map Etc/* timezones to "host" (pct doesn't accept Etc/* zones)
[[ "${_host_timezone:-}" == Etc/* ]] && _host_timezone="host"
local _ct_timezone="${var_timezone:-$_host_timezone}"
[[ "${_ct_timezone:-}" == Etc/* ]] && _ct_timezone="host"
# Helper to show current progress
show_progress() {
@ -1692,6 +1696,7 @@ advanced_settings() {
--inputbox "\nSet container timezone.\n\nExamples: Europe/Berlin, America/New_York, Asia/Tokyo\n\nHost timezone: ${_host_timezone:-unknown}\n\nLeave empty to inherit from host." 16 62 "$_ct_timezone" \
3>&1 1>&2 2>&3); then
_ct_timezone="$result"
[[ "${_ct_timezone:-}" == Etc/* ]] && _ct_timezone="host" # pct doesn't accept Etc/* zones
((STEP++))
else
((STEP--))
@ -2081,6 +2086,7 @@ install_script() {
else
timezone="UTC"
fi
[[ "${timezone:-}" == Etc/* ]] && timezone="host" # pct doesn't accept Etc/* zones
# Show APP Header
header_info
@ -2682,10 +2688,12 @@ $PCT_OPTIONS_STRING"
-protection 1"
fi
# Timezone flag (if var_timezone was set)
# Timezone (map Etc/* to "host" as pct doesn't accept them)
if [ -n "${CT_TIMEZONE:-}" ]; then
local _pct_timezone="$CT_TIMEZONE"
[[ "$_pct_timezone" == Etc/* ]] && _pct_timezone="host"
PCT_OPTIONS_STRING="$PCT_OPTIONS_STRING
-timezone $CT_TIMEZONE"
-timezone $_pct_timezone"
fi
# Password (already formatted)
@ -3036,8 +3044,9 @@ EOF'
export LANG=\$locale_line"
if [[ -z "${tz:-}" ]]; then
tz=$(timedatectl show --property=Timezone --value 2>/dev/null || echo "Etc/UTC")
tz=$(timedatectl show --property=Timezone --value 2>/dev/null || echo "UTC")
fi
[[ "${tz:-}" == Etc/* ]] && tz="UTC" # Normalize Etc/* to UTC for container setup
if pct exec "$CTID" -- test -e "/usr/share/zoneinfo/$tz"; then
# Set timezone using symlink (Debian 13+ compatible)

View File

@ -1222,6 +1222,7 @@ setup_deb822_repo() {
local suite="$4"
local component="${5:-main}"
local architectures="${6-}" # optional
local enabled="${7-}" # optional: "true" or "false"
# Validate required parameters
if [[ -z "$name" || -z "$gpg_url" || -z "$repo_url" || -z "$suite" ]]; then
@ -1255,6 +1256,7 @@ setup_deb822_repo() {
fi
[[ -n "$architectures" ]] && echo "Architectures: $architectures"
echo "Signed-By: /etc/apt/keyrings/${name}.gpg"
[[ -n "$enabled" ]] && echo "Enabled: $enabled"
} >/etc/apt/sources.list.d/${name}.sources
$STD apt update