2024-06-12 16:42:04 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2026-01-06 13:28:12 +01:00
|
|
|
# Copyright (c) 2021-2026 tteck
|
2025-04-30 11:20:30 +02:00
|
|
|
# Author: MickLesk (Canbiz)
|
2025-03-04 17:54:20 +01:00
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
2024-06-12 16:42:04 +02:00
|
|
|
# Source: https://github.com/Luligu/matterbridge/
|
|
|
|
|
|
2025-03-24 14:20:56 +01:00
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
2024-06-12 16:42:04 +02:00
|
|
|
color
|
|
|
|
|
verb_ip6
|
|
|
|
|
catch_errors
|
|
|
|
|
setting_up_container
|
|
|
|
|
network_check
|
|
|
|
|
update_os
|
|
|
|
|
|
2025-03-24 14:20:56 +01:00
|
|
|
msg_info "Install Matterbridge"
|
2024-08-11 08:42:40 -04:00
|
|
|
mkdir -p /root/Matterbridge
|
bump various scripts from Node 22 to 24 (#12265)
* bump(node): Node 22 to 24 for Tier 1 projects
Bump Node.js from 22 to 24 in install and ct update scripts for projects
where upstream already uses Node 24 in their Dockerfile/package.json:
- Cross-seed (engines >=24, Dockerfile node:24-alpine)
- Matterbridge (engines >=24.0.0, Dockerfile node:24-trixie-slim)
- Manyfold (volta.node 24.13.0)
- Pangolin (Dockerfile node:24-alpine)
- ROMM (engines 24, nvm install 24)
- SnowShare (Dockerfile node:24-alpine)
- Verdaccio (engines >=18, Dockerfile node:24-alpine)
Also adds missing NODE_VERSION setup_nodejs calls to ct update scripts
for cross-seed, pangolin, romm, snowshare, and manyfold.
* formatting
* fix: pin NODE_VERSION for nodecast-tv and wealthfolio
nodecast-tv: NODE_VERSION=20 (upstream Dockerfile uses nodesource/setup_20.x)
wealthfolio: NODE_VERSION=20 (upstream Dockerfile uses node:20-alpine)
* ci: add weekly Node.js version drift check workflow
Scans all install scripts using setup_nodejs, fetches upstream
package.json (engines.node) and Dockerfile (FROM node:XX),
compares with our NODE_VERSION and opens/updates a GitHub issue
on mismatch. Runs weekly on Monday at 06:00 UTC.
* remove wf - seperate branch
2026-02-24 11:38:15 +01:00
|
|
|
NODE_VERSION="24" NODE_MODULE="matterbridge" setup_nodejs
|
2024-06-12 16:42:04 +02:00
|
|
|
msg_ok "Installed Matterbridge"
|
|
|
|
|
|
|
|
|
|
msg_info "Creating Service"
|
|
|
|
|
cat <<EOF >/etc/systemd/system/matterbridge.service
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=matterbridge
|
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
2025-12-02 20:33:37 +01:00
|
|
|
ExecStart=matterbridge -service
|
2024-08-11 08:34:02 -04:00
|
|
|
WorkingDirectory=/root/Matterbridge
|
2024-06-12 16:42:04 +02:00
|
|
|
StandardOutput=inherit
|
|
|
|
|
StandardError=inherit
|
|
|
|
|
Restart=always
|
|
|
|
|
RestartSec=10s
|
|
|
|
|
TimeoutStopSec=30s
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
EOF
|
2025-04-01 20:22:40 +02:00
|
|
|
systemctl enable -q --now matterbridge
|
2024-06-12 16:42:04 +02:00
|
|
|
msg_ok "Created Service"
|
|
|
|
|
|
|
|
|
|
motd_ssh
|
|
|
|
|
customize
|
2025-11-22 17:27:13 +01:00
|
|
|
cleanup_lxc
|