mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-16 02:03:25 +01:00
Compare commits
1 Commits
main
...
github-act
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b42a8f0a2b |
21
CHANGELOG.md
21
CHANGELOG.md
@@ -404,27 +404,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 2026-02-16
|
|
||||||
|
|
||||||
## 2026-02-15
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- ebusd ([#11942](https://github.com/community-scripts/ProxmoxVE/pull/11942))
|
|
||||||
- add: seer script and migrations [@CrazyWolf13](https://github.com/CrazyWolf13) ([#11930](https://github.com/community-scripts/ProxmoxVE/pull/11930))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- Fix seerr URL in jellyseerr script [@lucacome](https://github.com/lucacome) ([#11951](https://github.com/community-scripts/ProxmoxVE/pull/11951))
|
|
||||||
- Fix jellyseer and overseer script replacement [@lucacome](https://github.com/lucacome) ([#11949](https://github.com/community-scripts/ProxmoxVE/pull/11949))
|
|
||||||
- Tautulli: Add setuptools < 81 [@tremor021](https://github.com/tremor021) ([#11943](https://github.com/community-scripts/ProxmoxVE/pull/11943))
|
|
||||||
|
|
||||||
- #### 💥 Breaking Changes
|
|
||||||
|
|
||||||
- Refactor: Patchmon [@vhsdream](https://github.com/vhsdream) ([#11888](https://github.com/community-scripts/ProxmoxVE/pull/11888))
|
|
||||||
|
|
||||||
## 2026-02-14
|
## 2026-02-14
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
50
ct/ebusd.sh
50
ct/ebusd.sh
@@ -1,50 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: Joerg Heinemann (heinemannj)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/john30/ebusd
|
|
||||||
|
|
||||||
APP="ebusd"
|
|
||||||
var_tags="${var_tags:-automation}"
|
|
||||||
var_cpu="${var_cpu:-1}"
|
|
||||||
var_ram="${var_ram:-512}"
|
|
||||||
var_disk="${var_disk:-2}"
|
|
||||||
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 [[ ! -f /etc/default/ebusd ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
if check_for_gh_release "ebusd" "john30/ebusd"; then
|
|
||||||
msg_info "Stopping Services"
|
|
||||||
systemctl stop ebusd
|
|
||||||
msg_ok "Stopped Services"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "ebusd" "john30/ebusd" "binary" "latest" "/opt/ebusd" "ebusd-*_amd64-trixie_mqtt1.deb"
|
|
||||||
|
|
||||||
msg_info "Starting Services"
|
|
||||||
systemctl start ebusd
|
|
||||||
msg_ok "Started Services"
|
|
||||||
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}"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__ __
|
|
||||||
___ / /_ __ ___________/ /
|
|
||||||
/ _ \/ __ \/ / / / ___/ __ /
|
|
||||||
/ __/ /_/ / /_/ (__ ) /_/ /
|
|
||||||
\___/_.___/\__,_/____/\__,_/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
_____
|
|
||||||
/ ___/___ ___ __________
|
|
||||||
\__ \/ _ \/ _ \/ ___/ ___/
|
|
||||||
___/ / __/ __/ / / /
|
|
||||||
/____/\___/\___/_/ /_/
|
|
||||||
|
|
||||||
@@ -29,46 +29,47 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "/opt/jellyseerr/package.json" ]] && [[ "$(grep -m1 '"version"' /opt/jellyseerr/package.json | awk -F'"' '{print $4}')" == "2.7.3" ]]; then
|
if [ "$(node -v | cut -c2-3)" -ne 22 ]; then
|
||||||
echo
|
msg_info "Updating Node.js Repository"
|
||||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
||||||
echo "Jellyseerr v2.7.3 detected."
|
msg_ok "Updating Node.js Repository"
|
||||||
echo
|
|
||||||
echo "Seerr is the new unified Jellyseerr and Overseerr."
|
|
||||||
echo "More info: https://docs.seerr.dev/blog/seerr-release"
|
|
||||||
echo
|
|
||||||
read -rp "Do you want to migrate to Seerr now? (y/N): " MIGRATE
|
|
||||||
echo
|
|
||||||
if [[ ! "$MIGRATE" =~ ^[Yy]$ ]]; then
|
|
||||||
msg_info "Migration cancelled. Exiting."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Switching update script to Seerr"
|
msg_info "Updating Packages"
|
||||||
cat <<EOF >/usr/bin/update
|
$STD apt-get update
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh)"
|
$STD apt-get -y upgrade
|
||||||
EOF
|
msg_ok "Updating Packages"
|
||||||
chmod +x /usr/bin/update
|
fi
|
||||||
msg_ok "Switched update script to Seerr. Running update..."
|
|
||||||
exec /usr/bin/update
|
cd /opt/jellyseerr
|
||||||
|
output=$(git pull --no-rebase)
|
||||||
|
|
||||||
|
pnpm_current=$(pnpm --version 2>/dev/null)
|
||||||
|
pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/jellyseerr/package.json)
|
||||||
|
|
||||||
|
if [ -z "$pnpm_current" ]; then
|
||||||
|
msg_error "pnpm not found. Installing version $pnpm_desired..."
|
||||||
|
NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs
|
||||||
|
elif ! node -e "const semver = require('semver'); process.exit(semver.satisfies('$pnpm_current', '$pnpm_desired') ? 0 : 1)"; then
|
||||||
|
msg_error "Updating pnpm from version $pnpm_current to $pnpm_desired..."
|
||||||
|
NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs
|
||||||
|
else
|
||||||
|
msg_ok "pnpm is already installed and satisfies version $pnpm_desired."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Updating Jellyseerr"
|
msg_info "Updating Jellyseerr"
|
||||||
cd /opt/jellyseerr
|
|
||||||
systemctl stop jellyseerr
|
|
||||||
output=$(git pull --no-rebase)
|
|
||||||
pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/jellyseerr/package.json)
|
|
||||||
NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs
|
|
||||||
if echo "$output" | grep -q "Already up to date."; then
|
if echo "$output" | grep -q "Already up to date."; then
|
||||||
msg_ok "$APP is already up to date."
|
msg_ok "$APP is already up to date."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
systemctl stop jellyseerr
|
||||||
rm -rf dist .next node_modules
|
rm -rf dist .next node_modules
|
||||||
export CYPRESS_INSTALL_BINARY=0
|
export CYPRESS_INSTALL_BINARY=0
|
||||||
cd /opt/jellyseerr
|
cd /opt/jellyseerr
|
||||||
$STD pnpm install --frozen-lockfile
|
$STD pnpm install --frozen-lockfile
|
||||||
export NODE_OPTIONS="--max-old-space-size=3072"
|
export NODE_OPTIONS="--max-old-space-size=3072"
|
||||||
$STD pnpm build
|
$STD pnpm build
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/jellyseerr.service
|
cat <<EOF >/etc/systemd/system/jellyseerr.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=jellyseerr Service
|
Description=jellyseerr Service
|
||||||
@@ -84,6 +85,7 @@ ExecStart=/usr/bin/node dist/index.js
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl start jellyseerr
|
systemctl start jellyseerr
|
||||||
msg_ok "Updated Jellyseerr"
|
msg_ok "Updated Jellyseerr"
|
||||||
|
|||||||
@@ -27,31 +27,6 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "$HOME/.overseerr" ]] && [[ "$(cat "$HOME/.overseerr")" == "1.34.0" ]]; then
|
|
||||||
echo
|
|
||||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
||||||
echo "Overseerr v1.34.0 detected."
|
|
||||||
echo
|
|
||||||
echo "Seerr is the new unified Jellyseerr and Overseerr."
|
|
||||||
echo "More info: https://docs.seerr.dev/blog/seerr-release"
|
|
||||||
echo
|
|
||||||
read -rp "Do you want to migrate to Seerr now? (y/N): " MIGRATE
|
|
||||||
echo
|
|
||||||
if [[ ! "$MIGRATE" =~ ^[Yy]$ ]]; then
|
|
||||||
msg_info "Migration cancelled. Exiting."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Switching update script to Seerr"
|
|
||||||
cat <<EOF >/usr/bin/update
|
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/seerr.sh)"
|
|
||||||
EOF
|
|
||||||
chmod +x /usr/bin/update
|
|
||||||
msg_ok "Switched update script to Seerr. Running update..."
|
|
||||||
exec /usr/bin/update
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "overseerr" "sct/overseerr"; then
|
if check_for_gh_release "overseerr" "sct/overseerr"; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop overseerr
|
systemctl stop overseerr
|
||||||
|
|||||||
@@ -43,40 +43,22 @@ function update_script() {
|
|||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "tarball" "latest" "/opt/patchmon"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "tarball" "latest" "/opt/patchmon"
|
||||||
|
|
||||||
msg_info "Updating PatchMon"
|
msg_info "Updating PatchMon"
|
||||||
VERSION=$(get_latest_github_release "PatchMon/PatchMon")
|
|
||||||
PROTO="$(sed -n '/SERVER_PROTOCOL/s/[^=]*=//p' /opt/backend.env)"
|
|
||||||
HOST="$(sed -n '/SERVER_HOST/s/[^=]*=//p' /opt/backend.env)"
|
|
||||||
[[ "${PROTO:-http}" == "http" ]] && PORT=":3001"
|
|
||||||
sed -i 's/PORT=3399/PORT=3001/' /opt/backend.env
|
|
||||||
sed -i -e "s/VERSION=.*/VERSION=$VERSION/" \
|
|
||||||
-e "\|VITE_API_URL=|s|http.*|${PROTO:-http}://${HOST:-$LOCAL_IP}${PORT:-}/api/v1|" /opt/frontend.env
|
|
||||||
export NODE_ENV=production
|
|
||||||
cd /opt/patchmon
|
cd /opt/patchmon
|
||||||
|
export NODE_ENV=production
|
||||||
|
$STD npm install --no-audit --no-fund --no-save --ignore-scripts
|
||||||
|
cd /opt/patchmon/backend
|
||||||
$STD npm install --no-audit --no-fund --no-save --ignore-scripts
|
$STD npm install --no-audit --no-fund --no-save --ignore-scripts
|
||||||
cd /opt/patchmon/frontend
|
cd /opt/patchmon/frontend
|
||||||
mv /opt/frontend.env /opt/patchmon/frontend/.env
|
$STD npm install --include=dev --no-audit --no-fund --no-save --ignore-scripts
|
||||||
$STD npm install --no-audit --no-fund --no-save --ignore-scripts --include=dev
|
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
cd /opt/patchmon/backend
|
cd /opt/patchmon/backend
|
||||||
mv /opt/backend.env /opt/patchmon/backend/.env
|
mv /opt/backend.env /opt/patchmon/backend/.env
|
||||||
$STD npm run db:generate
|
mv /opt/frontend.env /opt/patchmon/frontend/.env
|
||||||
$STD npx prisma migrate deploy
|
$STD npx prisma migrate deploy
|
||||||
cp /opt/patchmon/docker/nginx.conf.template /etc/nginx/sites-available/patchmon.conf
|
$STD npx prisma generate
|
||||||
sed -i -e 's|proxy_pass .*|proxy_pass http://127.0.0.1:3001;|' \
|
|
||||||
-e '\|try_files |i\ root /opt/patchmon/frontend/dist;' \
|
|
||||||
-e 's|alias.*|alias /opt/patchmon/frontend/dist/assets;|' \
|
|
||||||
-e '\|expires 1y|i\ root /opt/patchmon/frontend/dist;' /etc/nginx/sites-available/patchmon.conf
|
|
||||||
ln -sf /etc/nginx/sites-available/patchmon.conf /etc/nginx/sites-enabled/
|
|
||||||
rm -f /etc/nginx/sites-enabled/default
|
|
||||||
$STD nginx -t
|
|
||||||
systemctl restart nginx
|
|
||||||
msg_ok "Updated PatchMon"
|
msg_ok "Updated PatchMon"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
if grep -q '/usr/bin/node' /etc/systemd/system/patchmon-server.service; then
|
|
||||||
sed -i 's|ExecStart=.*|ExecStart=/usr/bin/npm run start|' /etc/systemd/system/patchmon-server.service
|
|
||||||
systemctl daemon-reload
|
|
||||||
fi
|
|
||||||
systemctl start patchmon-server
|
systemctl start patchmon-server
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
@@ -91,4 +73,4 @@ description
|
|||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
|
||||||
|
|||||||
165
ct/seerr.sh
165
ct/seerr.sh
@@ -1,165 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: CrazyWolf13
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://docs.seerr.dev/
|
|
||||||
|
|
||||||
APP="Seerr"
|
|
||||||
var_tags="${var_tags:-media}"
|
|
||||||
var_cpu="${var_cpu:-4}"
|
|
||||||
var_ram="${var_ram:-4096}"
|
|
||||||
var_disk="${var_disk:-12}"
|
|
||||||
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/seerr && ! -d /opt/jellyseerr && ! -d /opt/overseerr ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Start Migration from Jellyseerr
|
|
||||||
if [[ -f /etc/systemd/system/jellyseerr.service ]]; then
|
|
||||||
msg_info "Stopping Jellyseerr"
|
|
||||||
$STD systemctl stop jellyseerr || true
|
|
||||||
$STD systemctl disable jellyseerr || true
|
|
||||||
[ -f /etc/systemd/system/jellyseerr.service ] && rm -f /etc/systemd/system/jellyseerr.service
|
|
||||||
msg_ok "Stopped Jellyseerr"
|
|
||||||
|
|
||||||
msg_info "Creating Backup (Patience)"
|
|
||||||
tar -czf /opt/jellyseerr_backup_$(date +%Y%m%d_%H%M%S).tar.gz -C /opt jellyseerr
|
|
||||||
msg_ok "Created Backup"
|
|
||||||
|
|
||||||
msg_info "Migrating Jellyseerr to seerr"
|
|
||||||
[ -d /opt/jellyseerr ] && mv /opt/jellyseerr /opt/seerr
|
|
||||||
[ -d /etc/jellyseerr ] && mv /etc/jellyseerr /etc/seerr
|
|
||||||
[ -f /etc/seerr/jellyseerr.conf ] && mv /etc/seerr/jellyseerr.conf /etc/seerr/seerr.conf
|
|
||||||
cat <<EOF >/etc/systemd/system/seerr.service
|
|
||||||
[Unit]
|
|
||||||
Description=Seerr Service
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
EnvironmentFile=/etc/seerr/seerr.conf
|
|
||||||
Environment=NODE_ENV=production
|
|
||||||
Type=exec
|
|
||||||
Restart=on-failure
|
|
||||||
WorkingDirectory=/opt/seerr
|
|
||||||
ExecStart=/usr/bin/node dist/index.js
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now seerr
|
|
||||||
msg_ok "Migrated Jellyserr to Seerr"
|
|
||||||
fi
|
|
||||||
# END Jellyseerr Migration
|
|
||||||
|
|
||||||
# Start Migration from Overseerr
|
|
||||||
if [[ -f /etc/systemd/system/overseerr.service ]]; then
|
|
||||||
msg_info "Stopping Overseerr"
|
|
||||||
$STD systemctl stop overseerr || true
|
|
||||||
$STD systemctl disable overseerr || true
|
|
||||||
[ -f /etc/systemd/system/overseerr.service ] && rm -f /etc/systemd/system/overseerr.service
|
|
||||||
msg_ok "Stopped Overseerr"
|
|
||||||
|
|
||||||
msg_info "Creating Backup (Patience)"
|
|
||||||
tar -czf /opt/overseerr_backup_$(date +%Y%m%d_%H%M%S).tar.gz -C /opt overseerr
|
|
||||||
msg_ok "Created Backup"
|
|
||||||
|
|
||||||
msg_info "Migrating Overseerr to seerr"
|
|
||||||
[ -d /opt/overseerr ] && mv /opt/overseerr /opt/seerr
|
|
||||||
mkdir -p /etc/seerr
|
|
||||||
cat <<EOF >/etc/seerr/seerr.conf
|
|
||||||
## Seerr's default port is 5055, if you want to use both, change this.
|
|
||||||
## specify on which port to listen
|
|
||||||
PORT=5055
|
|
||||||
|
|
||||||
## specify on which interface to listen, by default seerr listens on all interfaces
|
|
||||||
#HOST=127.0.0.1
|
|
||||||
|
|
||||||
## Uncomment if you want to force Node.js to resolve IPv4 before IPv6 (advanced users only)
|
|
||||||
# FORCE_IPV4_FIRST=true
|
|
||||||
EOF
|
|
||||||
cat <<EOF >/etc/systemd/system/seerr.service
|
|
||||||
[Unit]
|
|
||||||
Description=Seerr Service
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
EnvironmentFile=/etc/seerr/seerr.conf
|
|
||||||
Environment=NODE_ENV=production
|
|
||||||
Type=exec
|
|
||||||
Restart=on-failure
|
|
||||||
WorkingDirectory=/opt/seerr
|
|
||||||
ExecStart=/usr/bin/node dist/index.js
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable -q --now seerr
|
|
||||||
msg_ok "Migrated Overseerr to Seerr"
|
|
||||||
fi
|
|
||||||
# END Overseerr Migration
|
|
||||||
|
|
||||||
if check_for_gh_release "seerr" "seerr-team/seerr"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop seerr
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
msg_info "Creating Backup"
|
|
||||||
cp -a /opt/seerr/config /opt/seerr_backup
|
|
||||||
msg_ok "Created Backup"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "seerr" "seerr-team/seerr" "tarball"
|
|
||||||
|
|
||||||
msg_info "Updating PNPM Version"
|
|
||||||
pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/seerr/package.json)
|
|
||||||
NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs
|
|
||||||
msg_ok "Updated PNPM Version"
|
|
||||||
|
|
||||||
msg_info "Updating Seerr"
|
|
||||||
cd /opt/seerr
|
|
||||||
rm -rf dist .next node_modules
|
|
||||||
export CYPRESS_INSTALL_BINARY=0
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=3072"
|
|
||||||
$STD pnpm build
|
|
||||||
msg_ok "Updated Seerr"
|
|
||||||
|
|
||||||
msg_info "Restoring Backup"
|
|
||||||
rm -rf /opt/seerr/config
|
|
||||||
mv /opt/seerr_backup /opt/seerr/config
|
|
||||||
msg_ok "Restored Backup"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start seerr
|
|
||||||
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}:5055${CL}"
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "ebusd",
|
|
||||||
"slug": "ebusd",
|
|
||||||
"categories": [
|
|
||||||
16
|
|
||||||
],
|
|
||||||
"date_created": "2026-02-15",
|
|
||||||
"type": "ct",
|
|
||||||
"updateable": true,
|
|
||||||
"privileged": false,
|
|
||||||
"interface_port": null,
|
|
||||||
"documentation": "https://github.com/john30/ebusd/wiki",
|
|
||||||
"website": "https://github.com/john30/ebusd",
|
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/ebusd.webp",
|
|
||||||
"config_path": "/etc/default/ebusd",
|
|
||||||
"description": "ebusd is a daemon for handling communication with eBUS devices connected to a 2-wire `energy bus` used by numerous heating systems.",
|
|
||||||
"install_methods": [
|
|
||||||
{
|
|
||||||
"type": "default",
|
|
||||||
"script": "ct/ebusd.sh",
|
|
||||||
"resources": {
|
|
||||||
"cpu": 1,
|
|
||||||
"ram": 512,
|
|
||||||
"hdd": 2,
|
|
||||||
"os": "debian",
|
|
||||||
"version": "13"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default_credentials": {
|
|
||||||
"username": "root",
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"notes": [
|
|
||||||
{
|
|
||||||
"text": "For required post installation actions, checkout: `https://github.com/community-scripts/ProxmoxVE/discussions/11352`",
|
|
||||||
"type": "info"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"generated": "2026-02-16T00:22:01Z",
|
"generated": "2026-02-14T18:07:29Z",
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"slug": "2fauth",
|
"slug": "2fauth",
|
||||||
@@ -193,16 +193,16 @@
|
|||||||
{
|
{
|
||||||
"slug": "cleanuparr",
|
"slug": "cleanuparr",
|
||||||
"repo": "Cleanuparr/Cleanuparr",
|
"repo": "Cleanuparr/Cleanuparr",
|
||||||
"version": "v2.6.2",
|
"version": "v2.6.1",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T02:15:19Z"
|
"date": "2026-02-13T10:00:19Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "cloudreve",
|
"slug": "cloudreve",
|
||||||
"repo": "cloudreve/cloudreve",
|
"repo": "cloudreve/cloudreve",
|
||||||
"version": "4.14.1",
|
"version": "4.14.0",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T01:39:24Z"
|
"date": "2026-02-14T06:05:06Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "comfyui",
|
"slug": "comfyui",
|
||||||
@@ -256,9 +256,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "dawarich",
|
"slug": "dawarich",
|
||||||
"repo": "Freika/dawarich",
|
"repo": "Freika/dawarich",
|
||||||
"version": "1.2.0",
|
"version": "1.1.0",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T22:33:56Z"
|
"date": "2026-02-08T14:42:45Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "discopanel",
|
"slug": "discopanel",
|
||||||
@@ -298,9 +298,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "donetick",
|
"slug": "donetick",
|
||||||
"repo": "donetick/donetick",
|
"repo": "donetick/donetick",
|
||||||
"version": "v0.1.74",
|
"version": "v0.1.73",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-14T23:21:45Z"
|
"date": "2026-02-12T23:42:30Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "drawio",
|
"slug": "drawio",
|
||||||
@@ -316,13 +316,6 @@
|
|||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-01-06T12:05:40Z"
|
"date": "2026-01-06T12:05:40Z"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"slug": "ebusd",
|
|
||||||
"repo": "john30/ebusd",
|
|
||||||
"version": "26.1",
|
|
||||||
"pinned": false,
|
|
||||||
"date": "2026-02-09T06:09:24Z"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"slug": "elementsynapse",
|
"slug": "elementsynapse",
|
||||||
"repo": "etkecc/synapse-admin",
|
"repo": "etkecc/synapse-admin",
|
||||||
@@ -361,9 +354,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "firefly",
|
"slug": "firefly",
|
||||||
"repo": "firefly-iii/firefly-iii",
|
"repo": "firefly-iii/firefly-iii",
|
||||||
"version": "v6.4.22",
|
"version": "v6.4.20",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T18:43:08Z"
|
"date": "2026-02-14T12:39:02Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "fladder",
|
"slug": "fladder",
|
||||||
@@ -410,9 +403,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "ghostfolio",
|
"slug": "ghostfolio",
|
||||||
"repo": "ghostfolio/ghostfolio",
|
"repo": "ghostfolio/ghostfolio",
|
||||||
"version": "2.239.0",
|
"version": "2.238.0",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T09:51:16Z"
|
"date": "2026-02-12T18:28:55Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "gitea",
|
"slug": "gitea",
|
||||||
@@ -578,16 +571,16 @@
|
|||||||
{
|
{
|
||||||
"slug": "invoiceninja",
|
"slug": "invoiceninja",
|
||||||
"repo": "invoiceninja/invoiceninja",
|
"repo": "invoiceninja/invoiceninja",
|
||||||
"version": "v5.12.60",
|
"version": "v5.12.59",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T00:11:31Z"
|
"date": "2026-02-13T02:26:13Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "jackett",
|
"slug": "jackett",
|
||||||
"repo": "Jackett/Jackett",
|
"repo": "Jackett/Jackett",
|
||||||
"version": "v0.24.1124",
|
"version": "v0.24.1113",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T05:54:22Z"
|
"date": "2026-02-14T17:46:58Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "jellystat",
|
"slug": "jellystat",
|
||||||
@@ -641,9 +634,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "kimai",
|
"slug": "kimai",
|
||||||
"repo": "kimai/kimai",
|
"repo": "kimai/kimai",
|
||||||
"version": "2.49.0",
|
"version": "2.48.0",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T20:40:19Z"
|
"date": "2026-01-31T18:10:59Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "kitchenowl",
|
"slug": "kitchenowl",
|
||||||
@@ -893,9 +886,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "nginx-ui",
|
"slug": "nginx-ui",
|
||||||
"repo": "0xJacky/nginx-ui",
|
"repo": "0xJacky/nginx-ui",
|
||||||
"version": "v2.3.3",
|
"version": "v2.3.2",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T00:58:14Z"
|
"date": "2025-12-09T09:47:15Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "nightscout",
|
"slug": "nightscout",
|
||||||
@@ -970,9 +963,16 @@
|
|||||||
{
|
{
|
||||||
"slug": "outline",
|
"slug": "outline",
|
||||||
"repo": "outline/outline",
|
"repo": "outline/outline",
|
||||||
"version": "v1.5.0",
|
"version": "v1.4.0",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T18:04:16Z"
|
"date": "2026-01-27T23:43:03Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"slug": "overseerr",
|
||||||
|
"repo": "sct/overseerr",
|
||||||
|
"version": "v1.34.0",
|
||||||
|
"pinned": false,
|
||||||
|
"date": "2025-03-26T08:48:34Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "owncast",
|
"slug": "owncast",
|
||||||
@@ -1054,9 +1054,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "pelican-wings",
|
"slug": "pelican-wings",
|
||||||
"repo": "pelican-dev/wings",
|
"repo": "pelican-dev/wings",
|
||||||
"version": "v1.0.0-beta24",
|
"version": "v1.0.0-beta23",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T16:09:56Z"
|
"date": "2026-02-09T22:10:26Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "pf2etools",
|
"slug": "pf2etools",
|
||||||
@@ -1310,13 +1310,6 @@
|
|||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2025-03-08T10:49:04Z"
|
"date": "2025-03-08T10:49:04Z"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"slug": "seerr",
|
|
||||||
"repo": "seerr-team/seerr",
|
|
||||||
"version": "v3.0.1",
|
|
||||||
"pinned": false,
|
|
||||||
"date": "2026-02-14T19:30:24Z"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"slug": "semaphore",
|
"slug": "semaphore",
|
||||||
"repo": "semaphoreui/semaphore",
|
"repo": "semaphoreui/semaphore",
|
||||||
@@ -1432,9 +1425,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "tautulli",
|
"slug": "tautulli",
|
||||||
"repo": "Tautulli/Tautulli",
|
"repo": "Tautulli/Tautulli",
|
||||||
"version": "v2.16.1",
|
"version": "v2.16.0",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T20:40:37Z"
|
"date": "2025-09-09T01:05:45Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "teddycloud",
|
"slug": "teddycloud",
|
||||||
@@ -1488,9 +1481,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "tracearr",
|
"slug": "tracearr",
|
||||||
"repo": "connorgallopo/Tracearr",
|
"repo": "connorgallopo/Tracearr",
|
||||||
"version": "v1.4.18",
|
"version": "v1.4.17",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T19:55:40Z"
|
"date": "2026-02-11T01:33:21Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "tracktor",
|
"slug": "tracktor",
|
||||||
@@ -1705,9 +1698,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "yubal",
|
"slug": "yubal",
|
||||||
"repo": "guillevc/yubal",
|
"repo": "guillevc/yubal",
|
||||||
"version": "v0.6.0",
|
"version": "v0.5.0",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T17:47:56Z"
|
"date": "2026-02-09T22:11:32Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "zigbee2mqtt",
|
"slug": "zigbee2mqtt",
|
||||||
@@ -1733,9 +1726,9 @@
|
|||||||
{
|
{
|
||||||
"slug": "zoraxy",
|
"slug": "zoraxy",
|
||||||
"repo": "tobychui/zoraxy",
|
"repo": "tobychui/zoraxy",
|
||||||
"version": "v3.3.2-rc1",
|
"version": "v3.3.1",
|
||||||
"pinned": false,
|
"pinned": false,
|
||||||
"date": "2026-02-15T02:16:17Z"
|
"date": "2026-01-28T13:52:02Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"slug": "zwave-js-ui",
|
"slug": "zwave-js-ui",
|
||||||
|
|||||||
35
frontend/public/json/jellyseerr.json
Normal file
35
frontend/public/json/jellyseerr.json
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"name": "Jellyseerr",
|
||||||
|
"slug": "jellyseerr",
|
||||||
|
"categories": [
|
||||||
|
14
|
||||||
|
],
|
||||||
|
"date_created": "2024-05-02",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 5055,
|
||||||
|
"documentation": "https://docs.jellyseerr.dev/",
|
||||||
|
"website": "https://github.com/Fallenbagel/jellyseerr",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/jellyseerr.webp",
|
||||||
|
"config_path": "/etc/jellyseerr/jellyseerr.conf",
|
||||||
|
"description": "Jellyseerr is a free and open source software application for managing requests for your media library. It is a a fork of Overseerr built to bring support for Jellyfin & Emby media servers.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/jellyseerr.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 4,
|
||||||
|
"ram": 4096,
|
||||||
|
"hdd": 8,
|
||||||
|
"os": "debian",
|
||||||
|
"version": "12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": []
|
||||||
|
}
|
||||||
35
frontend/public/json/overseerr.json
Normal file
35
frontend/public/json/overseerr.json
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"name": "Overseerr",
|
||||||
|
"slug": "overseerr",
|
||||||
|
"categories": [
|
||||||
|
14
|
||||||
|
],
|
||||||
|
"date_created": "2024-05-02",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 5055,
|
||||||
|
"documentation": "https://docs.overseerr.dev/",
|
||||||
|
"website": "https://overseerr.dev/",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/overseerr.webp",
|
||||||
|
"config_path": "/opt/overseerr/config/settings.json",
|
||||||
|
"description": "Overseerr is a request management and media discovery tool built to work with your existing Plex ecosystem.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/overseerr.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 2,
|
||||||
|
"ram": 4096,
|
||||||
|
"hdd": 8,
|
||||||
|
"os": "debian",
|
||||||
|
"version": "13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": []
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"type": "ct",
|
"type": "ct",
|
||||||
"updateable": true,
|
"updateable": true,
|
||||||
"privileged": false,
|
"privileged": false,
|
||||||
"interface_port": 3000,
|
"interface_port": 3399,
|
||||||
"documentation": "https://docs.patchmon.net",
|
"documentation": "https://docs.patchmon.net",
|
||||||
"website": "https://patchmon.net",
|
"website": "https://patchmon.net",
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/patchmon.webp",
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/patchmon.webp",
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Seerr",
|
|
||||||
"slug": "seerr",
|
|
||||||
"categories": [
|
|
||||||
13
|
|
||||||
],
|
|
||||||
"date_created": "2026-02-15",
|
|
||||||
"type": "ct",
|
|
||||||
"updateable": true,
|
|
||||||
"privileged": false,
|
|
||||||
"interface_port": 5055,
|
|
||||||
"documentation": "https://docs.seerr.dev/",
|
|
||||||
"website": "https://seerr.dev/",
|
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/seerr.webp",
|
|
||||||
"config_path": "/etc/seerr/seerr.conf",
|
|
||||||
"description": "Open-source media request and discovery manager for Jellyfin, Plex, and Emby. Unified version of Overseerr and Jellyseerr.",
|
|
||||||
"install_methods": [
|
|
||||||
{
|
|
||||||
"type": "default",
|
|
||||||
"script": "ct/seerr.sh",
|
|
||||||
"resources": {
|
|
||||||
"cpu": 4,
|
|
||||||
"ram": 4096,
|
|
||||||
"hdd": 12,
|
|
||||||
"os": "Debian",
|
|
||||||
"version": "13"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default_credentials": {
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"notes": []
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: Joerg Heinemann (heinemannj)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/john30/ebusd
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing ebusd"
|
|
||||||
fetch_and_deploy_gh_release "ebusd" "john30/ebusd" "binary" "latest" "" "ebusd-*_amd64-trixie_mqtt1.deb"
|
|
||||||
systemctl enable -q ebusd
|
|
||||||
msg_ok "Installed ebusd"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
64
install/jellyseerr-install.sh
Normal file
64
install/jellyseerr-install.sh
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2026 tteck
|
||||||
|
# Author: tteck (tteckster)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://docs.jellyseerr.dev/
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt-get install -y \
|
||||||
|
git \
|
||||||
|
build-essential
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
git clone -q https://github.com/Fallenbagel/jellyseerr.git /opt/jellyseerr
|
||||||
|
cd /opt/jellyseerr
|
||||||
|
$STD git checkout main
|
||||||
|
|
||||||
|
pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/jellyseerr/package.json)
|
||||||
|
NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs
|
||||||
|
|
||||||
|
msg_info "Installing Jellyseerr (Patience)"
|
||||||
|
export CYPRESS_INSTALL_BINARY=0
|
||||||
|
cd /opt/jellyseerr
|
||||||
|
$STD pnpm install --frozen-lockfile
|
||||||
|
export NODE_OPTIONS="--max-old-space-size=3072"
|
||||||
|
$STD pnpm build
|
||||||
|
mkdir -p /etc/jellyseerr/
|
||||||
|
cat <<EOF >/etc/jellyseerr/jellyseerr.conf
|
||||||
|
PORT=5055
|
||||||
|
# HOST=0.0.0.0
|
||||||
|
# JELLYFIN_TYPE=emby
|
||||||
|
EOF
|
||||||
|
msg_ok "Installed Jellyseerr"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/jellyseerr.service
|
||||||
|
[Unit]
|
||||||
|
Description=jellyseerr Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=/etc/jellyseerr/jellyseerr.conf
|
||||||
|
Environment=NODE_ENV=production
|
||||||
|
Type=exec
|
||||||
|
WorkingDirectory=/opt/jellyseerr
|
||||||
|
ExecStart=/usr/bin/node dist/index.js
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now jellyseerr
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
44
install/overseerr-install.sh
Normal file
44
install/overseerr-install.sh
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2026 tteck
|
||||||
|
# Author: tteck (tteckster)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://overseerr.dev/
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
|
||||||
|
fetch_and_deploy_gh_release "overseerr" "sct/overseerr" "tarball"
|
||||||
|
|
||||||
|
msg_info "Configuring Overseerr (Patience)"
|
||||||
|
cd /opt/overseerr
|
||||||
|
$STD yarn install
|
||||||
|
$STD yarn build
|
||||||
|
msg_ok "Configured Overseerr"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/overseerr.service
|
||||||
|
[Unit]
|
||||||
|
Description=Overseerr Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
WorkingDirectory=/opt/overseerr
|
||||||
|
ExecStart=/usr/bin/yarn start
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now overseerr
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -27,42 +27,162 @@ PG_DB_NAME="patchmon_db" PG_DB_USER="patchmon_usr" setup_postgresql_db
|
|||||||
fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "tarball" "latest" "/opt/patchmon"
|
fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "tarball" "latest" "/opt/patchmon"
|
||||||
|
|
||||||
msg_info "Configuring PatchMon"
|
msg_info "Configuring PatchMon"
|
||||||
VERSION=$(get_latest_github_release "PatchMon/PatchMon")
|
|
||||||
export NODE_ENV=production
|
|
||||||
cd /opt/patchmon
|
cd /opt/patchmon
|
||||||
|
export NODE_ENV=production
|
||||||
|
$STD npm install --no-audit --no-fund --no-save --ignore-scripts
|
||||||
|
cd /opt/patchmon/backend
|
||||||
$STD npm install --no-audit --no-fund --no-save --ignore-scripts
|
$STD npm install --no-audit --no-fund --no-save --ignore-scripts
|
||||||
|
|
||||||
cd /opt/patchmon/frontend
|
cd /opt/patchmon/frontend
|
||||||
cat <<EOF >./.env
|
$STD npm install --include=dev --no-audit --no-fund --no-save --ignore-scripts
|
||||||
VITE_API_URL=http://${LOCAL_IP}:3001/api/v1
|
|
||||||
VITE_APP_NAME=PatchMon
|
|
||||||
VITE_APP_VERSION=${VERSION}
|
|
||||||
EOF
|
|
||||||
$STD npm install --no-audit --no-fund --no-save --ignore-scripts --include=dev
|
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
|
JWT_SECRET="$(openssl rand -base64 64 | tr -d "=+/" | cut -c1-50)"
|
||||||
|
cat <<EOF >/opt/patchmon/backend/.env
|
||||||
|
# Database Configuration
|
||||||
|
DATABASE_URL="postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME"
|
||||||
|
PY_THRESHOLD=3M_DB_CONN_MAX_ATTEMPTS=30
|
||||||
|
PM_DB_CONN_WAIT_INTERVAL=2
|
||||||
|
|
||||||
JWT_SECRET="$(openssl rand -hex 64)"
|
# JWT Configuration
|
||||||
mv /opt/patchmon/backend/env.example /opt/patchmon/backend/.env
|
JWT_SECRET="$JWT_SECRET"
|
||||||
sed -i -e "s|DATABASE_URL=.*|DATABASE_URL=\"postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME\"|" \
|
JWT_EXPIRES_IN=1h
|
||||||
-e "/JWT_SECRET/s/[=$].*/=$JWT_SECRET/" \
|
JWT_REFRESH_EXPIRES_IN=7d
|
||||||
-e "\|CORS_ORIGIN|s|localhost|$LOCAL_IP|" \
|
|
||||||
-e "/PORT=3001/aSERVER_PROTOCOL=http \\
|
# Server Configuration
|
||||||
SERVER_HOST=$LOCAL_IP \\
|
PORT=3399
|
||||||
SERVER_PORT=3000" \
|
NODE_ENV=production
|
||||||
-e '/_ENV=production/aTRUST_PROXY=1' \
|
|
||||||
-e '/REDIS_USER=.*/,+1d' /opt/patchmon/backend/.env
|
# API Configuration
|
||||||
|
API_VERSION=v1
|
||||||
|
|
||||||
|
# CORS Configuration
|
||||||
|
CORS_ORIGIN="http://$LOCAL_IP"
|
||||||
|
|
||||||
|
# Session Configuration
|
||||||
|
SESSION_INACTIVITY_TIMEOUT_MINUTES=30
|
||||||
|
|
||||||
|
# User Configuration
|
||||||
|
DEFAULT_USER_ROLE=user
|
||||||
|
|
||||||
|
# Rate Limiting (times in milliseconds)
|
||||||
|
RATE_LIMIT_WINDOW_MS=900000
|
||||||
|
RATE_LIMIT_MAX=5000
|
||||||
|
AUTH_RATE_LIMIT_WINDOW_MS=600000
|
||||||
|
AUTH_RATE_LIMIT_MAX=500
|
||||||
|
AGENT_RATE_LIMIT_WINDOW_MS=60000
|
||||||
|
AGENT_RATE_LIMIT_MAX=1000
|
||||||
|
|
||||||
|
# Redis Configuration
|
||||||
|
REDIS_HOST=localhost
|
||||||
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
LOG_LEVEL=info
|
||||||
|
ENABLE_LOGGING=true
|
||||||
|
|
||||||
|
# TFA Configuration
|
||||||
|
TFA_REMEMBER_ME_EXPIRES_IN=30d
|
||||||
|
TFA_MAX_REMEMBER_SESSIONS=5
|
||||||
|
TFA_SUSPICIOUS_ACTIVITY_THRESHOLD=3
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF >/opt/patchmon/frontend/.env
|
||||||
|
VITE_API_URL=http://$LOCAL_IP/api/v1
|
||||||
|
VITE_APP_NAME=PatchMon
|
||||||
|
VITE_APP_VERSION=1.3.0
|
||||||
|
EOF
|
||||||
|
|
||||||
cd /opt/patchmon/backend
|
cd /opt/patchmon/backend
|
||||||
$STD npm run db:generate
|
|
||||||
$STD npx prisma migrate deploy
|
$STD npx prisma migrate deploy
|
||||||
|
$STD npx prisma generate
|
||||||
msg_ok "Configured PatchMon"
|
msg_ok "Configured PatchMon"
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
msg_info "Configuring Nginx"
|
||||||
cp /opt/patchmon/docker/nginx.conf.template /etc/nginx/sites-available/patchmon.conf
|
cat <<EOF >/etc/nginx/sites-available/patchmon.conf
|
||||||
sed -i -e 's|proxy_pass .*|proxy_pass http://127.0.0.1:3001;|' \
|
map \$http_x_forwarded_proto \$proxy_corrected_scheme {
|
||||||
-e '\|try_files |i\ root /opt/patchmon/frontend/dist;' \
|
default \$scheme; # Fallback to Nginx's actual connection scheme if no X-Forwarded-Proto header was set
|
||||||
-e 's|alias.*|alias /opt/patchmon/frontend/dist/assets;|' \
|
https https; # If X-Forwarded-Proto is 'https', use 'https'
|
||||||
-e '\|expires 1y|i\ root /opt/patchmon/frontend/dist;' /etc/nginx/sites-available/patchmon.conf
|
http http; # If X-Forwarded-Proto is 'http', use 'http'
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
# Listen on both IPv4 and IPv6 (with all hostnames)
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
# Security headers
|
||||||
|
add_header X-Frame-Options DENY always;
|
||||||
|
add_header X-Content-Type-Options nosniff always;
|
||||||
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||||
|
|
||||||
|
# Frontend
|
||||||
|
location / {
|
||||||
|
root /opt/patchmon/frontend/dist;
|
||||||
|
try_files \$uri \$uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Bull Board proxy
|
||||||
|
location /bullboard {
|
||||||
|
proxy_pass http://127.0.0.1:3399;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade \$http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host \$host;
|
||||||
|
proxy_set_header X-Real-IP \$remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto \$proxy_corrected_scheme;
|
||||||
|
proxy_set_header X-Forwarded-Host \$host;
|
||||||
|
proxy_set_header Cookie \$http_cookie;
|
||||||
|
proxy_cache_bypass \$http_upgrade;
|
||||||
|
proxy_read_timeout 300s;
|
||||||
|
proxy_connect_timeout 75s;
|
||||||
|
|
||||||
|
# Enable cookie passthrough
|
||||||
|
proxy_pass_header Set-Cookie;
|
||||||
|
proxy_cookie_path / /;
|
||||||
|
|
||||||
|
# Preserve original client IP
|
||||||
|
proxy_set_header X-Original-Forwarded-For \$http_x_forwarded_for;
|
||||||
|
if (\$request_method = 'OPTIONS') {
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# API proxy
|
||||||
|
location /api/ {
|
||||||
|
proxy_pass http://127.0.0.1:3399;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade \$http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host \$host;
|
||||||
|
proxy_set_header X-Real-IP \$remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto \$proxy_corrected_scheme;
|
||||||
|
proxy_cache_bypass \$http_upgrade;
|
||||||
|
proxy_read_timeout 300s;
|
||||||
|
proxy_connect_timeout 75s;
|
||||||
|
|
||||||
|
# Preserve original client IP
|
||||||
|
proxy_set_header X-Original-Forwarded-For \$http_x_forwarded_for;
|
||||||
|
if (\$request_method = 'OPTIONS') {
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Static assets caching (exclude Bull Board assets)
|
||||||
|
location ~* ^/(?!bullboard).*\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||||
|
root /opt/patchmon/frontend/dist;
|
||||||
|
expires 1y;
|
||||||
|
add_header Cache-Control "public, immutable";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Health check endpoint
|
||||||
|
location /health {
|
||||||
|
proxy_pass http://127.0.0.1:3399/health;
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
ln -sf /etc/nginx/sites-available/patchmon.conf /etc/nginx/sites-enabled/
|
ln -sf /etc/nginx/sites-available/patchmon.conf /etc/nginx/sites-enabled/
|
||||||
rm -f /etc/nginx/sites-enabled/default
|
rm -f /etc/nginx/sites-enabled/default
|
||||||
$STD nginx -t
|
$STD nginx -t
|
||||||
@@ -78,7 +198,7 @@ After=network.target postgresql.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/opt/patchmon/backend
|
WorkingDirectory=/opt/patchmon/backend
|
||||||
ExecStart=/usr/bin/npm run start
|
ExecStart=/usr/bin/node src/server.js
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
@@ -95,6 +215,57 @@ EOF
|
|||||||
systemctl enable -q --now patchmon-server
|
systemctl enable -q --now patchmon-server
|
||||||
msg_ok "Created and started service"
|
msg_ok "Created and started service"
|
||||||
|
|
||||||
|
msg_info "Updating settings"
|
||||||
|
cat <<EOF >/opt/patchmon/backend/update-settings.js
|
||||||
|
const { PrismaClient } = require('@prisma/client');
|
||||||
|
const { v4: uuidv4 } = require('uuid');
|
||||||
|
const prisma = new PrismaClient();
|
||||||
|
|
||||||
|
async function updateSettings() {
|
||||||
|
try {
|
||||||
|
const existingSettings = await prisma.settings.findFirst();
|
||||||
|
|
||||||
|
const settingsData = {
|
||||||
|
id: uuidv4(),
|
||||||
|
server_url: 'http://$LOCAL_IP',
|
||||||
|
server_protocol: 'http',
|
||||||
|
server_host: '$LOCAL_IP',
|
||||||
|
server_port: 3399,
|
||||||
|
update_interval: 60,
|
||||||
|
auto_update: true,
|
||||||
|
signup_enabled: false,
|
||||||
|
ignore_ssl_self_signed: false,
|
||||||
|
updated_at: new Date()
|
||||||
|
};
|
||||||
|
|
||||||
|
if (existingSettings) {
|
||||||
|
// Update existing settings
|
||||||
|
await prisma.settings.update({
|
||||||
|
where: { id: existingSettings.id },
|
||||||
|
data: settingsData
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// Create new settings record
|
||||||
|
await prisma.settings.create({
|
||||||
|
data: settingsData
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('✅ Database settings updated successfully');
|
||||||
|
} catch (error) {
|
||||||
|
console.error('❌ Error updating settings:', error.message);
|
||||||
|
process.exit(1);
|
||||||
|
} finally {
|
||||||
|
await prisma.\$disconnect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
updateSettings();
|
||||||
|
EOF
|
||||||
|
cd /opt/patchmon/backend
|
||||||
|
$STD node update-settings.js
|
||||||
|
msg_ok "Settings updated successfully"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
@@ -1,67 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: CrazyWolf13
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://docs.seerr.dev/
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt-get install -y build-essential
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "seerr" "seerr-team/seerr" "tarball"
|
|
||||||
pnpm_desired=$(grep -Po '"pnpm":\s*"\K[^"]+' /opt/seerr/package.json)
|
|
||||||
NODE_VERSION="22" NODE_MODULE="pnpm@$pnpm_desired" setup_nodejs
|
|
||||||
|
|
||||||
msg_info "Installing Seerr (Patience)"
|
|
||||||
export CYPRESS_INSTALL_BINARY=0
|
|
||||||
cd /opt/seerr
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=3072"
|
|
||||||
$STD pnpm build
|
|
||||||
mkdir -p /etc/seerr/
|
|
||||||
cat <<EOF >/etc/seerr/seerr.conf
|
|
||||||
## Seerr's default port is 5055, if you want to use both, change this.
|
|
||||||
## specify on which port to listen
|
|
||||||
PORT=5055
|
|
||||||
|
|
||||||
## specify on which interface to listen, by default seerr listens on all interfaces
|
|
||||||
HOST=0.0.0.0
|
|
||||||
|
|
||||||
## Uncomment if you want to force Node.js to resolve IPv4 before IPv6 (advanced users only)
|
|
||||||
# FORCE_IPV4_FIRST=true
|
|
||||||
EOF
|
|
||||||
msg_ok "Installed Seerr"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/seerr.service
|
|
||||||
[Unit]
|
|
||||||
Description=Seerr Service
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
EnvironmentFile=/etc/seerr/seerr.conf
|
|
||||||
Environment=NODE_ENV=production
|
|
||||||
Type=exec
|
|
||||||
Restart=on-failure
|
|
||||||
WorkingDirectory=/opt/seerr
|
|
||||||
ExecStart=/usr/bin/node dist/index.js
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now seerr
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -29,7 +29,6 @@ $STD uv venv --clear
|
|||||||
$STD source /opt/Tautulli/.venv/bin/activate
|
$STD source /opt/Tautulli/.venv/bin/activate
|
||||||
$STD uv pip install -r requirements.txt
|
$STD uv pip install -r requirements.txt
|
||||||
$STD uv pip install pyopenssl
|
$STD uv pip install pyopenssl
|
||||||
$STD uv pip install "setuptools<81"
|
|
||||||
msg_ok "Installed Tautulli"
|
msg_ok "Installed Tautulli"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ detect_repo_source() {
|
|||||||
community-scripts/ProxmoxVED) REPO_SOURCE="ProxmoxVED" ;;
|
community-scripts/ProxmoxVED) REPO_SOURCE="ProxmoxVED" ;;
|
||||||
"")
|
"")
|
||||||
# No URL detected — use hardcoded fallback
|
# No URL detected — use hardcoded fallback
|
||||||
# This value must match the repo: ProxmoxVE for production, ProxmoxVED for dev
|
# CI sed transforms this on promotion: ProxmoxVED → ProxmoxVE
|
||||||
REPO_SOURCE="ProxmoxVE"
|
REPO_SOURCE="ProxmoxVED"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Fork or unknown repo
|
# Fork or unknown repo
|
||||||
@@ -400,22 +400,26 @@ detect_cpu() {
|
|||||||
# - Detects RAM speed using dmidecode
|
# - Detects RAM speed using dmidecode
|
||||||
# - Sets RAM_SPEED global (e.g., "4800" for DDR5-4800)
|
# - Sets RAM_SPEED global (e.g., "4800" for DDR5-4800)
|
||||||
# - Requires root access for dmidecode
|
# - Requires root access for dmidecode
|
||||||
# - Returns empty if not available or if speed is "Unknown" (nested VMs)
|
# - Returns empty if not available
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
detect_ram() {
|
detect_ram() {
|
||||||
RAM_SPEED=""
|
RAM_SPEED=""
|
||||||
|
|
||||||
if command -v dmidecode &>/dev/null; then
|
if command -v dmidecode &>/dev/null; then
|
||||||
# Get configured memory speed (actual running speed)
|
# Get configured memory speed (actual running speed)
|
||||||
# Use || true to handle "Unknown" values in nested VMs (no numeric match)
|
RAM_SPEED=$(dmidecode -t memory 2>/dev/null | grep -m1 "Configured Memory Speed:" | grep -oE "[0-9]+" | head -1 || true)
|
||||||
RAM_SPEED=$(dmidecode -t memory 2>/dev/null | grep -m1 "Configured Memory Speed:" | grep -oE "[0-9]+" | head -1) || true
|
|
||||||
|
|
||||||
# Fallback to Speed: if Configured not available
|
# Fallback to Speed: if Configured not available
|
||||||
if [[ -z "$RAM_SPEED" ]]; then
|
if [[ -z "$RAM_SPEED" ]]; then
|
||||||
RAM_SPEED=$(dmidecode -t memory 2>/dev/null | grep -m1 "Speed:" | grep -oE "[0-9]+" | head -1) || true
|
RAM_SPEED=$(dmidecode -t memory 2>/dev/null | grep -m1 "Speed:" | grep -oE "[0-9]+" | head -1 || true)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure RAM_SPEED is a valid integer (PocketBase stores it as integer)
|
||||||
|
if [[ -z "$RAM_SPEED" || ! "$RAM_SPEED" =~ ^[0-9]+$ ]]; then
|
||||||
|
RAM_SPEED=0
|
||||||
|
fi
|
||||||
|
|
||||||
export RAM_SPEED
|
export RAM_SPEED
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -510,7 +514,7 @@ post_to_api() {
|
|||||||
"gpu_vendor": "${gpu_vendor}",
|
"gpu_vendor": "${gpu_vendor}",
|
||||||
"gpu_model": "${gpu_model}",
|
"gpu_model": "${gpu_model}",
|
||||||
"gpu_passthrough": "${gpu_passthrough}",
|
"gpu_passthrough": "${gpu_passthrough}",
|
||||||
"ram_speed": "${ram_speed}",
|
"ram_speed": ${ram_speed:-0},
|
||||||
"repo_source": "${REPO_SOURCE}"
|
"repo_source": "${REPO_SOURCE}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@@ -614,7 +618,7 @@ post_to_api_vm() {
|
|||||||
"gpu_vendor": "${gpu_vendor}",
|
"gpu_vendor": "${gpu_vendor}",
|
||||||
"gpu_model": "${gpu_model}",
|
"gpu_model": "${gpu_model}",
|
||||||
"gpu_passthrough": "${gpu_passthrough}",
|
"gpu_passthrough": "${gpu_passthrough}",
|
||||||
"ram_speed": "${ram_speed}",
|
"ram_speed": ${ram_speed:-0},
|
||||||
"repo_source": "${REPO_SOURCE}"
|
"repo_source": "${REPO_SOURCE}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@@ -748,7 +752,7 @@ post_update_to_api() {
|
|||||||
"gpu_vendor": "${gpu_vendor}",
|
"gpu_vendor": "${gpu_vendor}",
|
||||||
"gpu_model": "${gpu_model}",
|
"gpu_model": "${gpu_model}",
|
||||||
"gpu_passthrough": "${gpu_passthrough}",
|
"gpu_passthrough": "${gpu_passthrough}",
|
||||||
"ram_speed": "${ram_speed}",
|
"ram_speed": ${ram_speed:-0},
|
||||||
"repo_source": "${REPO_SOURCE}"
|
"repo_source": "${REPO_SOURCE}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@@ -790,7 +794,7 @@ EOF
|
|||||||
"gpu_vendor": "${gpu_vendor}",
|
"gpu_vendor": "${gpu_vendor}",
|
||||||
"gpu_model": "${gpu_model}",
|
"gpu_model": "${gpu_model}",
|
||||||
"gpu_passthrough": "${gpu_passthrough}",
|
"gpu_passthrough": "${gpu_passthrough}",
|
||||||
"ram_speed": "${ram_speed}",
|
"ram_speed": ${ram_speed:-0},
|
||||||
"repo_source": "${REPO_SOURCE}"
|
"repo_source": "${REPO_SOURCE}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@@ -887,7 +891,7 @@ categorize_error() {
|
|||||||
# Signal/Process errors (SIGTERM, SIGPIPE, SIGSEGV)
|
# Signal/Process errors (SIGTERM, SIGPIPE, SIGSEGV)
|
||||||
139 | 141 | 143) echo "signal" ;;
|
139 | 141 | 143) echo "signal" ;;
|
||||||
|
|
||||||
# Shell errors (general error, syntax error)
|
# Shell errors (general error, syntax error)
|
||||||
1 | 2) echo "shell" ;;
|
1 | 2) echo "shell" ;;
|
||||||
|
|
||||||
# Default - truly unknown
|
# Default - truly unknown
|
||||||
|
|||||||
@@ -5268,5 +5268,5 @@ if command -v pveversion >/dev/null 2>&1; then
|
|||||||
trap 'api_exit_script' EXIT
|
trap 'api_exit_script' EXIT
|
||||||
fi
|
fi
|
||||||
trap 'ensure_log_on_host; post_update_to_api "failed" "$?"' ERR
|
trap 'ensure_log_on_host; post_update_to_api "failed" "$?"' ERR
|
||||||
trap 'ensure_log_on_host; post_update_to_api "failed" "130"; exit 130' SIGINT
|
trap 'ensure_log_on_host; post_update_to_api "failed" "130"' SIGINT
|
||||||
trap 'ensure_log_on_host; post_update_to_api "failed" "143"; exit 143' SIGTERM
|
trap 'ensure_log_on_host; post_update_to_api "failed" "143"' SIGTERM
|
||||||
|
|||||||
Reference in New Issue
Block a user