Compare commits

..
Author SHA1 Message Date
github-actions[bot] 3515aad9ad Update CHANGELOG.md 2026-12-01 06:36:46 +00:00
CanbiZ (MickLesk) 307701f2ca DroppedNeedle: build and update the Rust v3 (#18735)
* DroppedNeedle: build and update the Rust v3

3.0.0 replaced the Python backend with a Rust server and ships no binaries, so every update failed on the missing requirements.txt after the version was already recorded. Build both binaries with cargo and the web UI with pnpm as upstream's Dockerfile does, keep the v2 config and cache in place for v3's upgrade page, and put the old version back when a build fails.

* DroppedNeedle: say where the upgrade sign-in code is

* DroppedNeedle: install the prebuilt v3 release files

From v3.2.0 each release carries the server and droppedneedle-tool per
architecture and the web UI as archives, so the Rust toolchain, Node,
pnpm and the build are gone, and the resources go back to v2's. The
update wipes the old tree except the v2 data and the web UI, which the
second download replaces. TZ is set, since the server reads only TZ.
Until v3.2.0 has its files no release matches and the download fails.
2026-12-01 07:36:28 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] d828f45d6f Update CHANGELOG.md (#19231)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 21:00:29 +00:00
Johann GrobeandClaude Opus 5.5 f308f4a906 Fix/bookorbit build (#19227)
* BookOrbit: build the shared types package before the client

Since 3.11.0 the client imports prop types from @bookorbit/types, which
Vue's SFC compiler resolves from the package's built declarations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* BookOrbit: drop comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:59:59 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] af7ed5c4ec Update CHANGELOG.md (#19230)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 20:59:56 +00:00
Richard TreichlandClaude Opus 5.5 9201e28e4c fix(mealie): set backend __version__ on bare-metal install/update (#19229)
Upstream ships mealie/__init__.py with the placeholder "develop"; the real
version is only injected by upstream CI for Docker images. Patch it with
MEALIE_VERSION alongside the existing frontend patches, in both the install
script and update_script, so /api/app/about reports the release version.

Fixes #19225

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:59:26 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 7140dadc28 Update CHANGELOG.md (#19223)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 17:49:58 +00:00
CanbiZ (MickLesk) 1de85114ca Frigate: install without the Intel media driver when Intel's repository is unreachable (#19063) 2026-11-30 18:49:24 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 179f0082ac Update CHANGELOG.md (#19221)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 15:31:14 +00:00
push-app-to-main[bot] 6f79e0fb37 Add warpgate (ct) (#19218)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-30 16:31:04 +01:00
push-app-to-main[bot] 0352651dea Add obico (ct) (#19217)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-30 16:30:35 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 770e12cbf2 Update CHANGELOG.md (#19220)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 15:28:18 +00:00
push-app-to-main[bot] 00cf085cb1 Add agentgateway (ct) (#19216)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-30 16:27:43 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] d4ab0ccb77 Update CHANGELOG.md (#19219)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 15:16:02 +00:00
push-app-to-main[bot] f607c23aa3 Add roundcube (ct) (#19214)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-30 16:15:31 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] a030a18f82 Update CHANGELOG.md (#19213)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 13:56:00 +00:00
push-app-to-main[bot] 88cc30cff5 Add langfuse (ct) (#19144)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-30 14:55:30 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 583a313d6c Update CHANGELOG.md (#19212)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 13:14:34 +00:00
Michel Roegl-Brunner e68ed1a138 Kan: build and run the API service (#19207)
Kan v0.8.0 split the app into apps/web and apps/api. The web app proxies
all API and auth calls to a separate API process on port 4000, which the
script neither built nor started, so sign-up failed with 502.

- Bundle the API with apps/api/build.mjs and run it as kan-api.service
- Order kan.service after kan-api.service
- Update: build the API, stop/start both services, and create the API
  service on existing installs
- Use TRELLO_APP_SECRET, the name upstream reads
2026-11-30 14:14:06 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 8040d78e5c Update CHANGELOG.md (#19211)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 12:22:28 +00:00
CanbiZ (MickLesk) ec9acc60bc VMs: allocate the EFI disk through vm_alloc_efi_disk (#19206)
allstarlink, alpine and opnsense still called pvesm alloc themselves and
attached the zero-filled volume as efidisk0. On efitype=4m (Btrfs, or
i440fx on any storage) OVMF's Secure Boot build faults on it and the VM
never boots (#19205). The engine's helper now lets Proxmox allocate and
initialize the disk; opnsense keeps its retry on zfs timeouts.
2026-11-30 13:21:57 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 24cf5cbda3 Update CHANGELOG.md (#19210)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 12:19:28 +00:00
Michel Roegl-Brunner eeebca67e4 speedtest-tracker: install cron for the scheduler (#19209)
The install script writes /etc/cron.d/speedtest-tracker but never installed cron, so SPEEDTEST_SCHEDULE never ran on Debian 13. Add cron to the install dependencies and ensure it on update for existing containers.
2026-11-30 13:18:57 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 6a84023355 Update CHANGELOG.md (#19208)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 12:16:19 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] efda411789 Update CHANGELOG.md (#19203)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 09:15:45 +00:00
CanbiZ (MickLesk) cbe76cfc80 Authelia: drop the base_settings call before variables (#19180)
It ran before the app's name and the next free ID were known. Proxmox VE
let that pass; on Incus, where unset variables already end the run, the
script stopped right after its banner with "NEXTID: unbound variable".
install_script calls base_settings itself.
2026-11-30 10:15:15 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 9495a57ddc Update CHANGELOG.md (#19202)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 08:39:21 +00:00
github-actions[bot] 3cc7e2554c koillection: bump PHP from 8.5 to 8.6 (#19200)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-30 09:38:51 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 868e7d2319 Update CHANGELOG.md (#19199)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 08:07:38 +00:00
github-actions[bot] f4a79945ab nocobase: bump Node.js from 22 to 24 (#19194)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-30 09:07:14 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] be9aa0c75f Update CHANGELOG.md (#19198)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 07:47:02 +00:00
github-actions[bot] 1b652c3d8c formbricks: bump Node.js from 24 to 26 (#19193)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-30 08:46:35 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] defed8e53c Update CHANGELOG.md (#19189)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-29 13:15:13 +00:00
push-app-to-main[bot] 9c6d24823a Add hindsight (ct) (#19179)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-29 14:14:44 +01:00
push-app-to-main[bot] 0c25db3173 Add cloudpanel (ct) (#19176)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-29 14:14:39 +01:00
43 changed files with 2324 additions and 939 deletions

No files matched your search

+354
View File
@@ -0,0 +1,354 @@
name: Archive Old Changelog Entries
on:
schedule:
# Run every Sunday at 00:00 UTC
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
archive-changelog:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: ubuntu-latest
env:
BRANCH_NAME: github-action-archive-changelog
AUTOMATED_PR_LABEL: "automated pr"
permissions:
contents: write
pull-requests: write
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GHAPP_PR_ID }}
private-key: ${{ secrets.GHAPP_PR_PRIVATE_KEY }}
- name: Generate a token for PR approval and merge
id: generate-token-merge
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GHAPP_MERGEBOT_ID }}
private-key: ${{ secrets.GHAPP_MERGEBOT_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Archive old changelog entries
uses: actions/github-script@v9
with:
script: |
const fs = require('fs').promises;
const path = require('path');
const KEEP_DAYS = 30;
const ARCHIVE_PATH = '.github/changelogs';
const CHANGELOG_PATH = 'CHANGELOG.md';
// Calculate cutoff date
const cutoffDate = new Date();
cutoffDate.setDate(cutoffDate.getDate() - KEEP_DAYS);
cutoffDate.setHours(0, 0, 0, 0);
console.log(`Cutoff date: ${cutoffDate.toISOString().split('T')[0]}`);
// Read changelog and normalize line endings
let content = await fs.readFile(CHANGELOG_PATH, 'utf-8');
content = content.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
const lines = content.split('\n');
// Parse entries
const datePattern = /^## (\d{4})-(\d{2})-(\d{2})$/;
let header = [];
let recentEntries = [];
let archiveData = {};
let currentDate = null;
let currentContent = [];
let inHeader = true;
let inOldHistory = false;
let historyDetailsDepth = 0;
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
const match = line.match(datePattern);
// Detect the start of History section: <details> followed by line with 📜 History
if (inHeader && !inOldHistory && line.trim() === '<details>') {
// Look ahead to see if this is the History section
const nextLine = lines[i + 1] || '';
if (nextLine.includes('📜 History')) {
inOldHistory = true;
historyDetailsDepth = 1;
continue;
}
}
// Track nested details tags to find the end of History section
if (inOldHistory) {
if (line.trim() === '<details>') {
historyDetailsDepth++;
}
if (line.trim() === '</details>') {
historyDetailsDepth--;
if (historyDetailsDepth === 0) {
// We've closed the main History details tag
inOldHistory = false;
}
}
continue;
}
if (match) {
inHeader = false;
// Save previous entry
if (currentDate && currentContent.length > 0) {
const entryText = currentContent.join('\n').trim();
const dateObj = new Date(`${currentDate}T00:00:00Z`);
// Always add to archive (by month)
const year = currentDate.substring(0, 4);
const month = currentDate.substring(5, 7);
if (!archiveData[year]) archiveData[year] = {};
if (!archiveData[year][month]) archiveData[year][month] = [];
archiveData[year][month].push(`## ${currentDate}\n\n${entryText}`);
// Also add to recent entries if within cutoff
if (dateObj >= cutoffDate) {
recentEntries.push(`## ${currentDate}\n\n${entryText}`);
}
}
currentDate = `${match[1]}-${match[2]}-${match[3]}`;
currentContent = [];
} else if (inHeader) {
header.push(line);
} else if (currentDate) {
currentContent.push(line);
}
}
// Don't forget the last entry
if (currentDate && currentContent.length > 0) {
const entryText = currentContent.join('\n').trim();
const dateObj = new Date(`${currentDate}T00:00:00Z`);
// Always add to archive (by month)
const year = currentDate.substring(0, 4);
const month = currentDate.substring(5, 7);
if (!archiveData[year]) archiveData[year] = {};
if (!archiveData[year][month]) archiveData[year][month] = [];
archiveData[year][month].push(`## ${currentDate}\n\n${entryText}`);
// Also add to recent entries if within cutoff
if (dateObj >= cutoffDate) {
recentEntries.push(`## ${currentDate}\n\n${entryText}`);
}
}
console.log(`Recent entries: ${recentEntries.length}`);
console.log(`Years to archive: ${Object.keys(archiveData).length}`);
// Month names in English
const monthNames = {
'01': 'January', '02': 'February', '03': 'March', '04': 'April',
'05': 'May', '06': 'June', '07': 'July', '08': 'August',
'09': 'September', '10': 'October', '11': 'November', '12': 'December'
};
// Create/update archive files
for (const year of Object.keys(archiveData).sort().reverse()) {
const yearPath = path.join(ARCHIVE_PATH, year);
try {
await fs.mkdir(yearPath, { recursive: true });
} catch (e) {
// Directory exists
}
for (const month of Object.keys(archiveData[year]).sort().reverse()) {
const monthPath = path.join(yearPath, `${month}.md`);
// Read existing content if exists
let existingContent = '';
try {
existingContent = await fs.readFile(monthPath, 'utf-8');
// Normalize line endings to prevent regex issues
existingContent = existingContent.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
} catch (e) {
// File doesn't exist
}
// Parse existing entries into a Map (date -> content) for deduplication
const allEntries = new Map();
// Helper function to parse entries from content
const parseEntries = (content) => {
const entries = new Map();
const parts = content.split(/(?=^## \d{4}-\d{2}-\d{2}$)/m);
for (const part of parts) {
const trimmed = part.trim();
if (!trimmed) continue;
const dateMatch = trimmed.match(/^## (\d{4}-\d{2}-\d{2})/);
if (dateMatch) {
entries.set(dateMatch[1], trimmed);
}
}
return entries;
};
// Parse existing content
if (existingContent) {
const existingEntries = parseEntries(existingContent);
for (const [date, content] of existingEntries) {
allEntries.set(date, content);
}
}
// Add new entries (existing entries take precedence to avoid overwriting)
let addedCount = 0;
for (const entry of archiveData[year][month]) {
const dateMatch = entry.match(/^## (\d{4}-\d{2}-\d{2})/);
if (dateMatch && !allEntries.has(dateMatch[1])) {
allEntries.set(dateMatch[1], entry.trim());
addedCount++;
}
}
// Sort entries by date (newest first) and write
const sortedDates = [...allEntries.keys()].sort().reverse();
const sortedContent = sortedDates.map(date => allEntries.get(date)).join('\n\n');
if (addedCount > 0 || !existingContent) {
await fs.writeFile(monthPath, sortedContent + '\n', 'utf-8');
console.log(`Updated: ${monthPath} (${allEntries.size} total entries, +${addedCount} new)`);
}
}
}
// Build history section
let historySection = [];
historySection.push('');
historySection.push('<details>');
historySection.push('<summary><h2>📜 History</h2></summary>');
historySection.push('');
// Get all years from archive directory
let allYears = [];
try {
const archiveDir = await fs.readdir(ARCHIVE_PATH);
allYears = archiveDir.filter(f => /^\d{4}$/.test(f)).sort().reverse();
} catch (e) {
allYears = Object.keys(archiveData).sort().reverse();
}
for (const year of allYears) {
historySection.push('');
historySection.push('<details>');
historySection.push(`<summary><h3>${year}</h3></summary>`);
historySection.push('');
// Get months for this year
let months = [];
try {
const yearDir = await fs.readdir(path.join(ARCHIVE_PATH, year));
months = yearDir
.filter(f => f.endsWith('.md'))
.map(f => f.replace('.md', ''))
.sort()
.reverse();
} catch (e) {
months = Object.keys(archiveData[year] || {}).sort().reverse();
}
for (const month of months) {
const monthName = monthNames[month] || month;
const monthPath = path.join(ARCHIVE_PATH, year, `${month}.md`);
// Count entries in month file
let entryCount = 0;
try {
let monthContent = await fs.readFile(monthPath, 'utf-8');
monthContent = monthContent.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
entryCount = (monthContent.match(/^## \d{4}-\d{2}-\d{2}$/gm) || []).length;
} catch (e) {
entryCount = (archiveData[year]?.[month] || []).length;
}
const relativePath = `.github/changelogs/${year}/${month}.md`;
historySection.push('');
historySection.push('<details>');
historySection.push(`<summary><h4>${monthName} (${entryCount} entries)</h4></summary>`);
historySection.push('');
historySection.push(`[View ${monthName} ${year} Changelog](${relativePath})`);
historySection.push('');
historySection.push('</details>');
}
historySection.push('');
historySection.push('</details>');
}
historySection.push('');
historySection.push('</details>');
// Build new CHANGELOG.md (History first, then recent entries)
const newChangelog = [
...header,
'',
historySection.join('\n'),
'',
recentEntries.join('\n\n')
].join('\n');
await fs.writeFile(CHANGELOG_PATH, newChangelog, 'utf-8');
console.log('CHANGELOG.md updated successfully');
- name: Check for changes
id: verify-diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_ENV
- name: Commit and push changes
if: env.changed == 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md .github/changelogs/
git commit -m "Archive old changelog entries"
git checkout -b $BRANCH_NAME || git checkout $BRANCH_NAME
git push origin $BRANCH_NAME --force
echo "HEAD_SHA=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
- name: Create pull request if not exists
if: env.changed == 'true'
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
PR_EXISTS=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -z "$PR_EXISTS" ]; then
gh pr create --title "[Github Action] Archive old changelog entries" \
--body "This PR is auto-generated by a Github Action to archive old changelog entries (older than 14 days) to .github/changelogs/YEAR/MONTH.md" \
--head $BRANCH_NAME \
--base main \
--label "$AUTOMATED_PR_LABEL"
fi
- name: Approve and merge pull request
if: env.changed == 'true'
env:
GH_TOKEN: ${{ steps.generate-token-merge.outputs.token }}
run: |
git config --global user.name "github-actions-automege[bot]"
git config --global user.email "github-actions-automege[bot]@users.noreply.github.com"
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -n "$PR_NUMBER" ]; then
gh pr review "$PR_NUMBER" --approve
gh pr merge "$PR_NUMBER" --squash --admin --match-head-commit "$HEAD_SHA"
fi
+439
View File
@@ -0,0 +1,439 @@
name: Create Changelog Pull Request
on:
push:
branches: ["main"]
workflow_dispatch:
# Fired by community-scripts/core when an engine pull request is merged, so a
# change there does not wait for the next push here. Optional: engine PRs are
# collected on every run regardless, this only decides how soon.
repository_dispatch:
types: [core-pr-merged]
jobs:
update-changelog-pull-request:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: ubuntu-latest
env:
CONFIG_PATH: .github/changelog-pr-config.json
BRANCH_NAME: github-action-update-changelog
AUTOMATED_PR_LABEL: "automated pr"
permissions:
contents: write
pull-requests: write
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GHAPP_PR_ID }}
private-key: ${{ secrets.GHAPP_PR_PRIVATE_KEY }}
- name: Generate a token for PR approval and merge
id: generate-token-merge
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GHAPP_MERGEBOT_ID }}
private-key: ${{ secrets.GHAPP_MERGEBOT_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Get latest dates in changelog
run: |
DATES=$(grep -E '^## [0-9]{4}-[0-9]{2}-[0-9]{2}' CHANGELOG.md | head -n 2 | awk '{print $2}')
LATEST_DATE=$(echo "$DATES" | sed -n '1p')
SECOND_LATEST_DATE=$(echo "$DATES" | sed -n '2p')
TODAY=$(date -u +%Y-%m-%d)
echo "TODAY=$TODAY" >> $GITHUB_ENV
if [[ "$LATEST_DATE" == "$TODAY" ]]; then
echo "LATEST_DATE=$SECOND_LATEST_DATE" >> $GITHUB_ENV
else
echo "LATEST_DATE=$LATEST_DATE" >> $GITHUB_ENV
fi
- name: Get categorized pull requests
id: get-categorized-prs
uses: actions/github-script@v9
with:
script: |
async function main() {
const fs = require('fs').promises;
const path = require('path');
const configPath = path.resolve(process.env.CONFIG_PATH);
const fileContent = await fs.readFile(configPath, 'utf-8');
const changelogConfig = JSON.parse(fileContent);
const categorizedPRs = changelogConfig.map(obj => ({
...obj,
notes: [],
subCategories: obj.subCategories ?? (
obj.labels.includes("update script") ? [
{ title: "🐞 Bug Fixes", labels: ["bugfix"], notes: [] },
{ title: "✨ New Features", labels: ["feature"], notes: [] },
{ title: "💥 Breaking Changes", labels: ["breaking change"], notes: [] },
{ title: "🔧 Refactor", labels: ["refactor"], notes: [] },
] :
obj.labels.includes("maintenance") ? [
{ title: "🐞 Bug Fixes", labels: ["bugfix"], notes: [] },
{ title: "✨ New Features", labels: ["feature"], notes: [] },
{ title: "💥 Breaking Changes", labels: ["breaking change"], notes: [] },
{ title: "📡 API", labels: ["api"], notes: [] },
{ title: "Github", labels: ["github"], notes: [] },
{ title: "📝 Documentation", labels: ["maintenance"], notes: [] },
{ title: "🔧 Refactor", labels: ["refactor"], notes: [] }
] :
obj.labels.includes("website") ? [
{ title: "🐞 Bug Fixes", labels: ["bugfix"], notes: [] },
{ title: "✨ New Features", labels: ["feature"], notes: [] },
{ title: "💥 Breaking Changes", labels: ["breaking change"], notes: [] },
{ title: "Script Information", labels: ["json"], notes: [] }
] : []
)
}));
const latestDateInChangelog = new Date(process.env.LATEST_DATE);
latestDateInChangelog.setUTCHours(23, 59, 59, 999);
const { data: pulls } = await github.rest.pulls.list({
owner: context.repo.owner,
repo: "ProxmoxVE",
base: "main",
state: "closed",
sort: "updated",
direction: "desc",
per_page: 100,
});
const filteredPRs = pulls.filter(pr =>
pr.merged_at &&
new Date(pr.merged_at) > latestDateInChangelog &&
!pr.labels.some(label =>
["invalid", "wontdo", process.env.AUTOMATED_PR_LABEL].includes(label.name.toLowerCase())
)
);
async function getScriptAuthors(pr) {
try {
const { data: files } = await github.rest.pulls.listFiles({
owner: context.repo.owner,
repo: "ProxmoxVE",
pull_number: pr.number,
per_page: 100,
});
const ctFile = files.find(file => file.status === "added" && /^ct\/[^/]+\.sh$/.test(file.filename));
if (!ctFile) return "";
const { data: script } = await github.rest.repos.getContent({
owner: context.repo.owner,
repo: "ProxmoxVE",
path: ctFile.filename,
ref: pr.merge_commit_sha,
});
const header = Buffer.from(script.content, "base64").toString("utf-8")
.split("\n").slice(0, 20)
.find(line => /^#\s*Authors?:/i.test(line));
if (!header) return "";
// "MickLesk (CanbiZ)" puts the handle first, "Slaviša Arežina (tremor021)" in the parentheses
const candidates = header.replace(/^#\s*Authors?:/i, "").split("|").map(part => {
part = part.trim().replace(/^[A-Za-z-]+:\s*/, "");
const match = part.match(/^([^(]*)\(([^)]*)\)/);
if (!match) return part;
const words = match[1].trim().split(/\s+/).filter(Boolean);
return words.length === 1 ? words[0] : match[2].trim();
});
// A display name used alone in a header; the GitHub account of that name is someone else
const authorAliases = { canbiz: "MickLesk" };
const logins = [];
for (let candidate of candidates) {
if (!/^[A-Za-z0-9-]+$/.test(candidate)) continue;
candidate = authorAliases[candidate.toLowerCase()] ?? candidate;
try {
const { data: user } = await github.rest.users.getByUsername({ username: candidate });
if (user.type === "User" && !logins.includes(user.login)) logins.push(user.login);
} catch (error) {
console.log(`No GitHub user ${candidate} (${ctFile.filename}): ${error}`);
}
}
return logins.map(login => `[@${login}](https://github.com/${login})`).join(", ");
} catch (error) {
console.error(`Could not read the author of #${pr.number}: ${error}`);
return "";
}
}
for (const pr of filteredPRs) {
const prLabels = pr.labels.map(label => label.name.toLowerCase());
const scriptAuthors = prLabels.includes("new script") ? await getScriptAuthors(pr) : "";
if (scriptAuthors) {
prNote = `- ${pr.title} ${scriptAuthors} ([#${pr.number}](${pr.html_url}))`;
} else if (pr.user.login.includes("push-app-to-main[bot]")) {
const scriptName = pr.title;
try {
const { data: relatedIssues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: "DevScripts",
state: "all",
labels: ["Started Migration To ProxmoxVE"],
per_page: 100,
});
const matchingIssue = relatedIssues.find(issue =>
issue.title.trim().toLowerCase() === scriptName.trim().toLowerCase()
);
if (matchingIssue) {
const issueAuthor = matchingIssue.user.login;
const issueAuthorUrl = `https://github.com/${issueAuthor}`;
prNote = `- ${pr.title} [@${issueAuthor}](${issueAuthorUrl}) ([#${pr.number}](${pr.html_url}))`;
}
else {
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
}
} catch (error) {
console.error(`Error fetching related issues: ${error}`);
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
}
}else{
prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
}
if (prLabels.includes("new script")) {
const newScriptCategory = categorizedPRs.find(category =>
category.title === "New Scripts" || category.labels.includes("new script"));
if (newScriptCategory) {
newScriptCategory.notes.push(prNote);
}
} else {
let categorized = false;
const priorityCategories = categorizedPRs.slice();
// Priority order for content-type labels (highest priority first)
const subCategoryPriority = ["breaking change", "bugfix", "feature", "refactor"];
for (const category of priorityCategories) {
if (categorized) break;
if (category.labels.some(label => prLabels.includes(label))) {
if (category.subCategories && category.subCategories.length > 0) {
// Find subcategory by priority order instead of first match
let subCategory = null;
for (const priorityLabel of subCategoryPriority) {
if (prLabels.includes(priorityLabel)) {
subCategory = category.subCategories.find(sub =>
sub.labels.includes(priorityLabel)
);
if (subCategory) break;
}
}
// Fallback: check for any other subcategory match (api, github, json, etc.)
if (!subCategory) {
subCategory = category.subCategories.find(sub =>
sub.labels.some(label => prLabels.includes(label))
);
}
if (subCategory) {
subCategory.notes.push(prNote);
} else {
category.notes.push(prNote);
}
} else {
category.notes.push(prNote);
}
categorized = true;
}
}
// Fallback: Add to Uncategorized if no category matched
if (!categorized) {
const uncategorized = categorizedPRs.find(category =>
category.title.includes("Uncategorized") || category.labels.includes("needs triage"));
if (uncategorized) {
uncategorized.notes.push(prNote);
}
}
}
}
// ── Pull requests from other repositories ───────────────────────
const externalRepos = [
{ repo: "core", category: "💾 Core", prefix: "core" },
{ repo: "services", category: "🛰️ Services", prefix: "services" },
{ repo: "ProxmoxVE-Frontend", category: "🌐 Website", prefix: "website" },
];
const externalLabelAliases = {
bug: "bugfix",
bugfix: "bugfix",
enhancement: "feature",
feature: "feature",
refactor: "refactor",
"breaking change": "breaking change",
};
const externalPriority = ["breaking change", "bugfix", "feature", "refactor"];
for (const { repo, category: categoryTitle, prefix } of externalRepos) {
try {
const { data: externalPulls } = await github.rest.pulls.list({
owner: context.repo.owner,
repo,
base: "main",
state: "closed",
sort: "updated",
direction: "desc",
per_page: 100,
});
const category = categorizedPRs.find(c => c.title === categoryTitle);
for (const pr of externalPulls) {
if (!pr.merged_at) continue;
if (new Date(pr.merged_at) <= latestDateInChangelog) continue;
const rawLabels = pr.labels.map(label => label.name.toLowerCase());
if (rawLabels.some(l => ["invalid", "wontdo", "wontfix", "duplicate", process.env.AUTOMATED_PR_LABEL].includes(l))) continue;
if (!category) {
console.log(`No ${categoryTitle} category configured; skipping ${prefix}#${pr.number}`);
continue;
}
// core#N rather than #N: a bare #N links to a pull request in this repository.
const note = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([${prefix}#${pr.number}](${pr.html_url}))`;
const mapped = rawLabels.map(l => externalLabelAliases[l]).filter(Boolean);
let placed = false;
if (category.subCategories && category.subCategories.length > 0) {
for (const priorityLabel of externalPriority) {
if (!mapped.includes(priorityLabel)) continue;
const subCategory = category.subCategories.find(sub =>
sub.labels.includes(priorityLabel));
if (subCategory) {
subCategory.notes.push(note);
placed = true;
break;
}
}
}
if (!placed) category.notes.push(note);
}
} catch (error) {
console.error(`Could not read ${repo} pull requests: ${error}`);
}
}
return categorizedPRs;
}
return await main();
- name: Update CHANGELOG.md
uses: actions/github-script@v9
with:
script: |
const fs = require('fs').promises;
const path = require('path');
const today = process.env.TODAY;
const latestDateInChangelog = process.env.LATEST_DATE;
const changelogPath = path.resolve('CHANGELOG.md');
const categorizedPRs = ${{ steps.get-categorized-prs.outputs.result }};
console.log(JSON.stringify(categorizedPRs, null, 2));
let newReleaseNotes = `## ${today}\n\n`;
for (const { title, notes, subCategories } of categorizedPRs) {
const hasSubcategories = subCategories && subCategories.length > 0;
const hasMainNotes = notes.length > 0;
const hasSubNotes = hasSubcategories && subCategories.some(sub => sub.notes && sub.notes.length > 0);
if (hasMainNotes || hasSubNotes) {
newReleaseNotes += `### ${title}\n\n`;
}
if (hasMainNotes) {
newReleaseNotes += ` ${notes.join("\n")}\n\n`;
}
if (hasSubcategories) {
for (const { title: subTitle, notes: subNotes } of subCategories) {
if (subNotes && subNotes.length > 0) {
newReleaseNotes += ` - #### ${subTitle}\n\n`;
newReleaseNotes += ` ${subNotes.join("\n ")}\n\n`;
}
}
}
}
const changelogContent = await fs.readFile(changelogPath, 'utf-8');
const changelogIncludesTodaysReleaseNotes = changelogContent.includes(`\n## ${today}`);
const regex = changelogIncludesTodaysReleaseNotes
? new RegExp(`## ${today}.*(?=## ${latestDateInChangelog})`, "gs")
: new RegExp(`(?=## ${latestDateInChangelog})`, "gs");
const newChangelogContent = changelogContent.replace(regex, newReleaseNotes);
await fs.writeFile(changelogPath, newChangelogContent);
- name: Check for changes
id: verify-diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_ENV
- name: Commit and push changes
if: env.changed == 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md"
git checkout -b $BRANCH_NAME || git checkout $BRANCH_NAME
git push origin $BRANCH_NAME --force
echo "HEAD_SHA=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
- name: Create pull request if not exists
if: env.changed == 'true'
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
PR_EXISTS=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -z "$PR_EXISTS" ]; then
gh pr create --title "[Github Action] Update CHANGELOG.md" \
--body "This PR is auto-generated by a Github Action to update the CHANGELOG.md file." \
--head $BRANCH_NAME \
--base main \
--label "$AUTOMATED_PR_LABEL"
fi
- name: Approve pull request
if: env.changed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -n "$PR_NUMBER" ]; then
gh pr review "$PR_NUMBER" --approve
fi
- name: Approve pull request and merge
if: env.changed == 'true'
env:
GH_TOKEN: ${{ steps.generate-token-merge.outputs.token }}
run: |
git config --global user.name "github-actions-automege[bot]"
git config --global user.email "github-actions-automege[bot]@users.noreply.github.com"
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -n "$PR_NUMBER" ]; then
gh pr review "$PR_NUMBER" --approve
gh pr merge "$PR_NUMBER" --squash --admin --match-head-commit "$HEAD_SHA"
fi
+1 -1
View File
@@ -579,7 +579,7 @@ jobs:
# "opened" — a label added a moment later can arrive too late.
#
# "keep-open" rather than "automated pr" for that exemption: both
# skip the template check, but daily-release.yml drops every PR
# skip the template check, but changelog-pr.yml drops every PR
# carrying "automated pr" (it marks its own PR with it), so that
# label would keep these bumps out of the changelog entirely.
# "update script" and "bugfix" place them under Updated Scripts →
+1 -1
View File
@@ -555,7 +555,7 @@ jobs:
# Labels go on at creation: they exempt the PR from the template check,
# which runs on "opened". "keep-open" rather than "automated pr", which
# daily-release.yml drops.
# changelog-pr.yml drops.
if url=$(gh pr create \
--title "${slug}: bump PHP from ${our} to ${upstream}" \
--body "$body" \
+1 -1
View File
@@ -524,7 +524,7 @@ jobs:
# Labels go on at creation: they exempt the PR from the template check,
# which runs on "opened". "keep-open" rather than "automated pr", which
# daily-release.yml drops.
# changelog-pr.yml drops.
if url=$(gh pr create \
--title "${slug}: bump Python from ${our} to ${upstream}" \
--body "$body" \
-815
View File
@@ -1,815 +0,0 @@
name: Daily Changelog and Release
# Once a day, shortly after midnight UTC: collect the pull requests merged
# during the previous day, add them to CHANGELOG.md through one pull request,
# and publish the same notes as a GitHub release. On Sundays the entries older
# than 30 days are archived into .github/changelogs/ in the same pull request.
on:
schedule:
- cron: '1 0 * * *' # Runs daily at 00:01 UTC
workflow_dispatch:
inputs:
date:
description: "Day to release (YYYY-MM-DD, UTC). Defaults to yesterday."
required: false
type: string
archive:
description: "Archive old changelog entries even if it is not Sunday"
required: false
type: boolean
default: false
dry_run:
description: "Build the notes and show the changelog diff, but create no release, push nothing and open no pull request"
required: false
type: boolean
default: false
concurrency:
group: daily-release
cancel-in-progress: false
jobs:
daily-release:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: ubuntu-latest
env:
CONFIG_PATH: .github/changelog-pr-config.json
BRANCH_NAME: github-action-update-changelog
AUTOMATED_PR_LABEL: "automated pr"
permissions:
contents: write
pull-requests: write
steps:
- name: Generate a token
id: generate-token
if: ${{ !inputs.dry_run }}
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GHAPP_PR_ID }}
private-key: ${{ secrets.GHAPP_PR_PRIVATE_KEY }}
- name: Generate a token for PR approval and merge
id: generate-token-merge
if: ${{ !inputs.dry_run }}
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.GHAPP_MERGEBOT_ID }}
private-key: ${{ secrets.GHAPP_MERGEBOT_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Resolve the day to release
env:
INPUT_DATE: ${{ inputs.date }}
INPUT_ARCHIVE: ${{ inputs.archive }}
INPUT_DRY_RUN: ${{ inputs.dry_run }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "$INPUT_DRY_RUN" == "true" ]]; then
echo "DRY_RUN=true" >> $GITHUB_ENV
fi
if [[ -n "$INPUT_DATE" ]]; then
RELEASE_DATE=$(date -u -d "$INPUT_DATE" +%Y-%m-%d) || exit 1
else
RELEASE_DATE=$(date -u -d yesterday +%Y-%m-%d)
fi
echo "RELEASE_DATE=$RELEASE_DATE" >> $GITHUB_ENV
echo "DAY_START=${RELEASE_DATE}T00:00:00Z" >> $GITHUB_ENV
echo "DAY_END=$(date -u -d "$RELEASE_DATE +1 day" +%Y-%m-%d)T00:00:00Z" >> $GITHUB_ENV
if [[ "$(date -u +%u)" == "7" || "$INPUT_ARCHIVE" == "true" ]]; then
echo "RUN_ARCHIVE=true" >> $GITHUB_ENV
fi
if gh release view "$RELEASE_DATE" >/dev/null 2>&1; then
echo "RELEASE_EXISTS=true" >> $GITHUB_ENV
fi
- name: Get categorized pull requests
id: get-categorized-prs
uses: actions/github-script@v9
with:
script: |
async function main() {
const fs = require('fs').promises;
const path = require('path');
const configPath = path.resolve(process.env.CONFIG_PATH);
const fileContent = await fs.readFile(configPath, 'utf-8');
const changelogConfig = JSON.parse(fileContent);
const categorizedPRs = changelogConfig.map(obj => ({
...obj,
notes: [],
subCategories: obj.subCategories ?? (
obj.labels.includes("update script") ? [
{ title: "🐞 Bug Fixes", labels: ["bugfix"], notes: [] },
{ title: "✨ New Features", labels: ["feature"], notes: [] },
{ title: "💥 Breaking Changes", labels: ["breaking change"], notes: [] },
{ title: "🔧 Refactor", labels: ["refactor"], notes: [] },
] :
obj.labels.includes("maintenance") ? [
{ title: "🐞 Bug Fixes", labels: ["bugfix"], notes: [] },
{ title: "✨ New Features", labels: ["feature"], notes: [] },
{ title: "💥 Breaking Changes", labels: ["breaking change"], notes: [] },
{ title: "📡 API", labels: ["api"], notes: [] },
{ title: "Github", labels: ["github"], notes: [] },
{ title: "📝 Documentation", labels: ["maintenance"], notes: [] },
{ title: "🔧 Refactor", labels: ["refactor"], notes: [] }
] :
obj.labels.includes("website") ? [
{ title: "🐞 Bug Fixes", labels: ["bugfix"], notes: [] },
{ title: "✨ New Features", labels: ["feature"], notes: [] },
{ title: "💥 Breaking Changes", labels: ["breaking change"], notes: [] },
{ title: "Script Information", labels: ["json"], notes: [] }
] : []
)
}));
const dayStart = new Date(process.env.DAY_START);
const dayEnd = new Date(process.env.DAY_END);
// Closed pull requests come newest-update first, and a pull request merged
// during the day was updated at or after its merge. So once a page ends with
// one last updated before the day began, nothing further can belong to it.
async function listMergedPRs(repo) {
const merged = [];
for (let page = 1; ; page++) {
const { data } = await github.rest.pulls.list({
owner: context.repo.owner,
repo,
base: "main",
state: "closed",
sort: "updated",
direction: "desc",
per_page: 100,
page,
});
for (const pr of data) {
if (!pr.merged_at) continue;
const mergedAt = new Date(pr.merged_at);
if (mergedAt >= dayStart && mergedAt < dayEnd) merged.push(pr);
}
if (data.length < 100 || new Date(data[data.length - 1].updated_at) < dayStart) return merged;
}
}
const filteredPRs = (await listMergedPRs("ProxmoxVE")).filter(pr =>
!pr.labels.some(label =>
["invalid", "wontdo", process.env.AUTOMATED_PR_LABEL].includes(label.name.toLowerCase())
)
);
async function getScriptAuthors(pr) {
try {
const { data: files } = await github.rest.pulls.listFiles({
owner: context.repo.owner,
repo: "ProxmoxVE",
pull_number: pr.number,
per_page: 100,
});
const ctFile = files.find(file => file.status === "added" && /^ct\/[^/]+\.sh$/.test(file.filename));
if (!ctFile) return "";
const { data: script } = await github.rest.repos.getContent({
owner: context.repo.owner,
repo: "ProxmoxVE",
path: ctFile.filename,
ref: pr.merge_commit_sha,
});
const header = Buffer.from(script.content, "base64").toString("utf-8")
.split("\n").slice(0, 20)
.find(line => /^#\s*Authors?:/i.test(line));
if (!header) return "";
// "MickLesk (CanbiZ)" puts the handle first, "Slaviša Arežina (tremor021)" in the parentheses
const candidates = header.replace(/^#\s*Authors?:/i, "").split("|").map(part => {
part = part.trim().replace(/^[A-Za-z-]+:\s*/, "");
const match = part.match(/^([^(]*)\(([^)]*)\)/);
if (!match) return part;
const words = match[1].trim().split(/\s+/).filter(Boolean);
return words.length === 1 ? words[0] : match[2].trim();
});
// A display name used alone in a header; the GitHub account of that name is someone else
const authorAliases = { canbiz: "MickLesk" };
const logins = [];
for (let candidate of candidates) {
if (!/^[A-Za-z0-9-]+$/.test(candidate)) continue;
candidate = authorAliases[candidate.toLowerCase()] ?? candidate;
try {
const { data: user } = await github.rest.users.getByUsername({ username: candidate });
if (user.type === "User" && !logins.includes(user.login)) logins.push(user.login);
} catch (error) {
console.log(`No GitHub user ${candidate} (${ctFile.filename}): ${error}`);
}
}
return logins.map(login => `[@${login}](https://github.com/${login})`).join(", ");
} catch (error) {
console.error(`Could not read the author of #${pr.number}: ${error}`);
return "";
}
}
for (const pr of filteredPRs) {
const prLabels = pr.labels.map(label => label.name.toLowerCase());
const scriptAuthors = prLabels.includes("new script") ? await getScriptAuthors(pr) : "";
if (scriptAuthors) {
prNote = `- ${pr.title} ${scriptAuthors} ([#${pr.number}](${pr.html_url}))`;
} else if (pr.user.login.includes("push-app-to-main[bot]")) {
const scriptName = pr.title;
try {
const { data: relatedIssues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: "DevScripts",
state: "all",
labels: ["Started Migration To ProxmoxVE"],
per_page: 100,
});
const matchingIssue = relatedIssues.find(issue =>
issue.title.trim().toLowerCase() === scriptName.trim().toLowerCase()
);
if (matchingIssue) {
const issueAuthor = matchingIssue.user.login;
const issueAuthorUrl = `https://github.com/${issueAuthor}`;
prNote = `- ${pr.title} [@${issueAuthor}](${issueAuthorUrl}) ([#${pr.number}](${pr.html_url}))`;
}
else {
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
}
} catch (error) {
console.error(`Error fetching related issues: ${error}`);
prNote = `- ${pr.title} ([#${pr.number}](${pr.html_url}))`;
}
}else{
prNote = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([#${pr.number}](${pr.html_url}))`;
}
if (prLabels.includes("new script")) {
const newScriptCategory = categorizedPRs.find(category =>
category.title === "New Scripts" || category.labels.includes("new script"));
if (newScriptCategory) {
newScriptCategory.notes.push(prNote);
}
} else {
let categorized = false;
const priorityCategories = categorizedPRs.slice();
// Priority order for content-type labels (highest priority first)
const subCategoryPriority = ["breaking change", "bugfix", "feature", "refactor"];
for (const category of priorityCategories) {
if (categorized) break;
if (category.labels.some(label => prLabels.includes(label))) {
if (category.subCategories && category.subCategories.length > 0) {
// Find subcategory by priority order instead of first match
let subCategory = null;
for (const priorityLabel of subCategoryPriority) {
if (prLabels.includes(priorityLabel)) {
subCategory = category.subCategories.find(sub =>
sub.labels.includes(priorityLabel)
);
if (subCategory) break;
}
}
// Fallback: check for any other subcategory match (api, github, json, etc.)
if (!subCategory) {
subCategory = category.subCategories.find(sub =>
sub.labels.some(label => prLabels.includes(label))
);
}
if (subCategory) {
subCategory.notes.push(prNote);
} else {
category.notes.push(prNote);
}
} else {
category.notes.push(prNote);
}
categorized = true;
}
}
// Fallback: Add to Uncategorized if no category matched
if (!categorized) {
const uncategorized = categorizedPRs.find(category =>
category.title.includes("Uncategorized") || category.labels.includes("needs triage"));
if (uncategorized) {
uncategorized.notes.push(prNote);
}
}
}
}
// ── Pull requests from other repositories ───────────────────────
const externalRepos = [
{ repo: "core", category: "💾 Core", prefix: "core" },
{ repo: "services", category: "🛰️ Services", prefix: "services" },
{ repo: "ProxmoxVE-Frontend", category: "🌐 Website", prefix: "website" },
];
const externalLabelAliases = {
bug: "bugfix",
bugfix: "bugfix",
enhancement: "feature",
feature: "feature",
refactor: "refactor",
"breaking change": "breaking change",
};
const externalPriority = ["breaking change", "bugfix", "feature", "refactor"];
for (const { repo, category: categoryTitle, prefix } of externalRepos) {
try {
const externalPulls = await listMergedPRs(repo);
const category = categorizedPRs.find(c => c.title === categoryTitle);
for (const pr of externalPulls) {
const rawLabels = pr.labels.map(label => label.name.toLowerCase());
if (rawLabels.some(l => ["invalid", "wontdo", "wontfix", "duplicate", process.env.AUTOMATED_PR_LABEL].includes(l))) continue;
if (!category) {
console.log(`No ${categoryTitle} category configured; skipping ${prefix}#${pr.number}`);
continue;
}
// core#N rather than #N: a bare #N links to a pull request in this repository.
const note = `- ${pr.title} [@${pr.user.login}](https://github.com/${pr.user.login}) ([${prefix}#${pr.number}](${pr.html_url}))`;
const mapped = rawLabels.map(l => externalLabelAliases[l]).filter(Boolean);
let placed = false;
if (category.subCategories && category.subCategories.length > 0) {
for (const priorityLabel of externalPriority) {
if (!mapped.includes(priorityLabel)) continue;
const subCategory = category.subCategories.find(sub =>
sub.labels.includes(priorityLabel));
if (subCategory) {
subCategory.notes.push(note);
placed = true;
break;
}
}
}
if (!placed) category.notes.push(note);
}
} catch (error) {
console.error(`Could not read ${repo} pull requests: ${error}`);
}
}
return categorizedPRs;
}
return await main();
- name: Build the changelog entry
id: notes
uses: actions/github-script@v9
with:
script: |
const fs = require('fs').promises;
const path = require('path');
const releaseDate = process.env.RELEASE_DATE;
const changelogPath = path.resolve('CHANGELOG.md');
const categorizedPRs = ${{ steps.get-categorized-prs.outputs.result }};
console.log(JSON.stringify(categorizedPRs, null, 2));
let hasNotes = false;
let newReleaseNotes = `## ${releaseDate}\n\n`;
for (const { title, notes, subCategories } of categorizedPRs) {
const hasSubcategories = subCategories && subCategories.length > 0;
const hasMainNotes = notes.length > 0;
const hasSubNotes = hasSubcategories && subCategories.some(sub => sub.notes && sub.notes.length > 0);
if (hasMainNotes || hasSubNotes) {
hasNotes = true;
newReleaseNotes += `### ${title}\n\n`;
}
if (hasMainNotes) {
newReleaseNotes += ` ${notes.join("\n")}\n\n`;
}
if (hasSubcategories) {
for (const { title: subTitle, notes: subNotes } of subCategories) {
if (subNotes && subNotes.length > 0) {
newReleaseNotes += ` - #### ${subTitle}\n\n`;
newReleaseNotes += ` ${subNotes.join("\n ")}\n\n`;
}
}
}
}
if (!hasNotes) {
console.log(`No pull requests were merged on ${releaseDate}.`);
core.setOutput('empty', 'true');
return;
}
core.setOutput('empty', 'false');
await fs.writeFile(path.join(process.env.RUNNER_TEMP, 'release_section.md'), newReleaseNotes.trimEnd() + '\n');
const changelogContent = await fs.readFile(changelogPath, 'utf-8');
if (new RegExp(`^## ${releaseDate}$`, 'm').test(changelogContent)) {
console.log(`CHANGELOG.md already has an entry for ${releaseDate}.`);
return;
}
// Newest first: go in above the first entry that is older than this one
let insertAt = changelogContent.length;
for (const match of changelogContent.matchAll(/^## (\d{4}-\d{2}-\d{2})/gm)) {
if (match[1] < releaseDate) {
insertAt = match.index;
break;
}
}
const updated = insertAt === changelogContent.length
? `${changelogContent.trimEnd()}\n\n${newReleaseNotes}`
: changelogContent.slice(0, insertAt) + newReleaseNotes + changelogContent.slice(insertAt);
await fs.writeFile(changelogPath, updated);
- name: Create GitHub release
if: steps.notes.outputs.empty != 'true' && env.RELEASE_EXISTS != 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd "$RUNNER_TEMP"
# GitHub fills a release's Contributors only from bare @login mentions
sed -E 's#\[@([A-Za-z0-9-]+)\]\(https://github\.com/\1\)#@\1#g' release_section.md > release_full.md
# Keep whole lines up to 120000 characters (GitHub allows 125000)
export LC_ALL=C.UTF-8
SIZE=0
TRUNCATED=false
while IFS= read -r line || [ -n "$line" ]; do
SIZE=$((SIZE + ${#line} + 1))
if [ "$SIZE" -gt 120000 ]; then
TRUNCATED=true
break
fi
printf '%s\n' "$line"
done < release_full.md > release_notes.md
if [ "$TRUNCATED" = true ]; then
printf '\nCut to fit the release size limit. The full list is in [CHANGELOG.md](https://github.com/community-scripts/ProxmoxVE/blob/main/CHANGELOG.md).\n' >> release_notes.md
fi
PREVIOUS=$(gh release view --json tagName --jq .tagName 2>/dev/null || true)
if [ -n "$PREVIOUS" ]; then
printf '\n**Full Changelog**: https://github.com/community-scripts/ProxmoxVE/compare/%s...%s\n' "$PREVIOUS" "$RELEASE_DATE" >> release_notes.md
fi
cat release_notes.md
if [ "$DRY_RUN" = "true" ]; then
echo "Dry run: not creating the release $RELEASE_DATE"
else
gh release create "$RELEASE_DATE" -t "$RELEASE_DATE" -F release_notes.md
fi
- name: Archive old changelog entries
if: env.RUN_ARCHIVE == 'true'
uses: actions/github-script@v9
with:
script: |
const fs = require('fs').promises;
const path = require('path');
const KEEP_DAYS = 30;
const ARCHIVE_PATH = '.github/changelogs';
const CHANGELOG_PATH = 'CHANGELOG.md';
// Calculate cutoff date
const cutoffDate = new Date();
cutoffDate.setDate(cutoffDate.getDate() - KEEP_DAYS);
cutoffDate.setHours(0, 0, 0, 0);
console.log(`Cutoff date: ${cutoffDate.toISOString().split('T')[0]}`);
// Read changelog and normalize line endings
let content = await fs.readFile(CHANGELOG_PATH, 'utf-8');
content = content.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
const lines = content.split('\n');
// Parse entries
const datePattern = /^## (\d{4})-(\d{2})-(\d{2})$/;
let header = [];
let recentEntries = [];
let archiveData = {};
let currentDate = null;
let currentContent = [];
let inHeader = true;
let inOldHistory = false;
let historyDetailsDepth = 0;
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
const match = line.match(datePattern);
// Detect the start of History section: <details> followed by line with 📜 History
if (inHeader && !inOldHistory && line.trim() === '<details>') {
// Look ahead to see if this is the History section
const nextLine = lines[i + 1] || '';
if (nextLine.includes('📜 History')) {
inOldHistory = true;
historyDetailsDepth = 1;
continue;
}
}
// Track nested details tags to find the end of History section
if (inOldHistory) {
if (line.trim() === '<details>') {
historyDetailsDepth++;
}
if (line.trim() === '</details>') {
historyDetailsDepth--;
if (historyDetailsDepth === 0) {
// We've closed the main History details tag
inOldHistory = false;
}
}
continue;
}
if (match) {
inHeader = false;
// Save previous entry
if (currentDate && currentContent.length > 0) {
const entryText = currentContent.join('\n').trim();
const dateObj = new Date(`${currentDate}T00:00:00Z`);
// Always add to archive (by month)
const year = currentDate.substring(0, 4);
const month = currentDate.substring(5, 7);
if (!archiveData[year]) archiveData[year] = {};
if (!archiveData[year][month]) archiveData[year][month] = [];
archiveData[year][month].push(`## ${currentDate}\n\n${entryText}`);
// Also add to recent entries if within cutoff
if (dateObj >= cutoffDate) {
recentEntries.push(`## ${currentDate}\n\n${entryText}`);
}
}
currentDate = `${match[1]}-${match[2]}-${match[3]}`;
currentContent = [];
} else if (inHeader) {
header.push(line);
} else if (currentDate) {
currentContent.push(line);
}
}
// Don't forget the last entry
if (currentDate && currentContent.length > 0) {
const entryText = currentContent.join('\n').trim();
const dateObj = new Date(`${currentDate}T00:00:00Z`);
// Always add to archive (by month)
const year = currentDate.substring(0, 4);
const month = currentDate.substring(5, 7);
if (!archiveData[year]) archiveData[year] = {};
if (!archiveData[year][month]) archiveData[year][month] = [];
archiveData[year][month].push(`## ${currentDate}\n\n${entryText}`);
// Also add to recent entries if within cutoff
if (dateObj >= cutoffDate) {
recentEntries.push(`## ${currentDate}\n\n${entryText}`);
}
}
console.log(`Recent entries: ${recentEntries.length}`);
console.log(`Years to archive: ${Object.keys(archiveData).length}`);
// Month names in English
const monthNames = {
'01': 'January', '02': 'February', '03': 'March', '04': 'April',
'05': 'May', '06': 'June', '07': 'July', '08': 'August',
'09': 'September', '10': 'October', '11': 'November', '12': 'December'
};
// Create/update archive files
for (const year of Object.keys(archiveData).sort().reverse()) {
const yearPath = path.join(ARCHIVE_PATH, year);
try {
await fs.mkdir(yearPath, { recursive: true });
} catch (e) {
// Directory exists
}
for (const month of Object.keys(archiveData[year]).sort().reverse()) {
const monthPath = path.join(yearPath, `${month}.md`);
// Read existing content if exists
let existingContent = '';
try {
existingContent = await fs.readFile(monthPath, 'utf-8');
// Normalize line endings to prevent regex issues
existingContent = existingContent.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
} catch (e) {
// File doesn't exist
}
// Parse existing entries into a Map (date -> content) for deduplication
const allEntries = new Map();
// Helper function to parse entries from content
const parseEntries = (content) => {
const entries = new Map();
const parts = content.split(/(?=^## \d{4}-\d{2}-\d{2}$)/m);
for (const part of parts) {
const trimmed = part.trim();
if (!trimmed) continue;
const dateMatch = trimmed.match(/^## (\d{4}-\d{2}-\d{2})/);
if (dateMatch) {
entries.set(dateMatch[1], trimmed);
}
}
return entries;
};
// Parse existing content
if (existingContent) {
const existingEntries = parseEntries(existingContent);
for (const [date, content] of existingEntries) {
allEntries.set(date, content);
}
}
// Add new entries (existing entries take precedence to avoid overwriting)
let addedCount = 0;
for (const entry of archiveData[year][month]) {
const dateMatch = entry.match(/^## (\d{4}-\d{2}-\d{2})/);
if (dateMatch && !allEntries.has(dateMatch[1])) {
allEntries.set(dateMatch[1], entry.trim());
addedCount++;
}
}
// Sort entries by date (newest first) and write
const sortedDates = [...allEntries.keys()].sort().reverse();
const sortedContent = sortedDates.map(date => allEntries.get(date)).join('\n\n');
if (addedCount > 0 || !existingContent) {
await fs.writeFile(monthPath, sortedContent + '\n', 'utf-8');
console.log(`Updated: ${monthPath} (${allEntries.size} total entries, +${addedCount} new)`);
}
}
}
// Build history section
let historySection = [];
historySection.push('');
historySection.push('<details>');
historySection.push('<summary><h2>📜 History</h2></summary>');
historySection.push('');
// Get all years from archive directory
let allYears = [];
try {
const archiveDir = await fs.readdir(ARCHIVE_PATH);
allYears = archiveDir.filter(f => /^\d{4}$/.test(f)).sort().reverse();
} catch (e) {
allYears = Object.keys(archiveData).sort().reverse();
}
for (const year of allYears) {
historySection.push('');
historySection.push('<details>');
historySection.push(`<summary><h3>${year}</h3></summary>`);
historySection.push('');
// Get months for this year
let months = [];
try {
const yearDir = await fs.readdir(path.join(ARCHIVE_PATH, year));
months = yearDir
.filter(f => f.endsWith('.md'))
.map(f => f.replace('.md', ''))
.sort()
.reverse();
} catch (e) {
months = Object.keys(archiveData[year] || {}).sort().reverse();
}
for (const month of months) {
const monthName = monthNames[month] || month;
const monthPath = path.join(ARCHIVE_PATH, year, `${month}.md`);
// Count entries in month file
let entryCount = 0;
try {
let monthContent = await fs.readFile(monthPath, 'utf-8');
monthContent = monthContent.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
entryCount = (monthContent.match(/^## \d{4}-\d{2}-\d{2}$/gm) || []).length;
} catch (e) {
entryCount = (archiveData[year]?.[month] || []).length;
}
const relativePath = `.github/changelogs/${year}/${month}.md`;
historySection.push('');
historySection.push('<details>');
historySection.push(`<summary><h4>${monthName} (${entryCount} entries)</h4></summary>`);
historySection.push('');
historySection.push(`[View ${monthName} ${year} Changelog](${relativePath})`);
historySection.push('');
historySection.push('</details>');
}
historySection.push('');
historySection.push('</details>');
}
historySection.push('');
historySection.push('</details>');
// Build new CHANGELOG.md (History first, then recent entries)
const newChangelog = [
...header,
'',
historySection.join('\n'),
'',
recentEntries.join('\n\n')
].join('\n');
await fs.writeFile(CHANGELOG_PATH, newChangelog, 'utf-8');
console.log('CHANGELOG.md updated successfully');
- name: Check for changes
run: |
if [ -n "$(git status --porcelain CHANGELOG.md .github/changelogs)" ]; then
if [ "$DRY_RUN" = "true" ]; then
echo "Dry run: not committing. Pending changes:"
git status --short CHANGELOG.md .github/changelogs
git --no-pager diff --stat
git --no-pager diff -- CHANGELOG.md | head -n 200
else
echo "changed=true" >> $GITHUB_ENV
fi
fi
- name: Commit and push changes
if: env.changed == 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add CHANGELOG.md .github/changelogs/
git commit -m "Update CHANGELOG.md"
git checkout -b $BRANCH_NAME || git checkout $BRANCH_NAME
git push origin $BRANCH_NAME --force
echo "HEAD_SHA=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
- name: Create pull request if not exists
if: env.changed == 'true'
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
PR_EXISTS=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -z "$PR_EXISTS" ]; then
gh pr create --title "[Github Action] Update CHANGELOG.md" \
--body "This PR is auto-generated by a Github Action to update the CHANGELOG.md file." \
--head $BRANCH_NAME \
--base main \
--label "$AUTOMATED_PR_LABEL"
fi
- name: Approve pull request
if: env.changed == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -n "$PR_NUMBER" ]; then
gh pr review "$PR_NUMBER" --approve
fi
- name: Approve pull request and merge
if: env.changed == 'true'
env:
GH_TOKEN: ${{ steps.generate-token-merge.outputs.token }}
run: |
git config --global user.name "github-actions-automege[bot]"
git config --global user.email "github-actions-automege[bot]@users.noreply.github.com"
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --state open --json number,isCrossRepository --jq '[.[] | select(.isCrossRepository == false)][0].number // empty')
if [ -n "$PR_NUMBER" ]; then
gh pr review "$PR_NUMBER" --approve
gh pr merge "$PR_NUMBER" --squash --admin --match-head-commit "$HEAD_SHA"
fi
+69
View File
@@ -0,0 +1,69 @@
name: Create Daily Release
on:
schedule:
- cron: '1 0 * * *' # Runs daily at 00:01 UTC
workflow_dispatch:
jobs:
create-daily-release:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Clean CHANGELOG (remove HTML header)
run: sed -n '/^## /,$p' CHANGELOG.md > changelog_cleaned.md
- name: Extract relevant changelog section
id: extract
run: |
YESTERDAY=$(date -u --date="yesterday" +%Y-%m-%d)
echo "Checking for changes on: $YESTERDAY"
# Extract the section from "## $YESTERDAY" until the next "## YYYY-MM-DD"
sed -n "/^## $YESTERDAY/,/^## [0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}/p" changelog_cleaned.md | head -n -1 > changelog_tmp_full.md
# GitHub fills a release's Contributors only from bare @login mentions
sed -i -E 's#\[@([A-Za-z0-9-]+)\]\(https://github\.com/\1\)#@\1#g' changelog_tmp_full.md
# Keep whole lines up to 120000 characters (GitHub allows 125000)
export LC_ALL=C.UTF-8
SIZE=0
TRUNCATED=false
while IFS= read -r line || [ -n "$line" ]; do
SIZE=$((SIZE + ${#line} + 1))
if [ "$SIZE" -gt 120000 ]; then
TRUNCATED=true
break
fi
printf '%s\n' "$line"
done < changelog_tmp_full.md > changelog_tmp.md
if [ "$TRUNCATED" = true ]; then
printf '\nCut to fit the release size limit. The full list is in [CHANGELOG.md](https://github.com/community-scripts/ProxmoxVE/blob/main/CHANGELOG.md).\n' >> changelog_tmp.md
fi
echo "=== Extracted Changelog ==="
cat changelog_tmp.md
echo "==========================="
# Abort if no content was found
if [ ! -s changelog_tmp.md ]; then
echo "No changes found for $YESTERDAY, skipping release."
echo "skip=true" >> "$GITHUB_OUTPUT"
fi
- name: Create GitHub release
if: steps.extract.outputs.skip != 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
YESTERDAY=$(date -u --date="yesterday" +%Y-%m-%d)
PREVIOUS=$(gh release view --json tagName --jq .tagName 2>/dev/null || true)
if [ -n "$PREVIOUS" ]; then
printf '\n**Full Changelog**: https://github.com/community-scripts/ProxmoxVE/compare/%s...%s\n' "$PREVIOUS" "$YESTERDAY" >> changelog_tmp.md
fi
gh release create "$YESTERDAY" -t "$YESTERDAY" -F changelog_tmp.md
+43 -1
View File
@@ -590,11 +590,53 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-12-01
### 🚀 Updated Scripts
- #### 💥 Breaking Changes
- DroppedNeedle: build and update the Rust v3 [@MickLesk](https://github.com/MickLesk) ([#18735](https://github.com/community-scripts/ProxmoxVE/pull/18735))
## 2026-11-30
### 🆕 New Scripts
- Warpgate [@MickLesk](https://github.com/MickLesk) ([#19218](https://github.com/community-scripts/ProxmoxVE/pull/19218))
- Obico [@a55uka](https://github.com/a55uka) ([#19217](https://github.com/community-scripts/ProxmoxVE/pull/19217))
- agentgateway [@andy-vdg](https://github.com/andy-vdg) ([#19216](https://github.com/community-scripts/ProxmoxVE/pull/19216))
- Roundcube [@MickLesk](https://github.com/MickLesk) ([#19214](https://github.com/community-scripts/ProxmoxVE/pull/19214))
- Langfuse [@steveonjava](https://github.com/steveonjava) ([#19144](https://github.com/community-scripts/ProxmoxVE/pull/19144))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Fix/bookorbit build [@johanngrobe](https://github.com/johanngrobe) ([#19227](https://github.com/community-scripts/ProxmoxVE/pull/19227))
- Mealie: set backend __version__ on bare-metal install/update [@rtreichl](https://github.com/rtreichl) ([#19229](https://github.com/community-scripts/ProxmoxVE/pull/19229))
- Kan: build and run the API service [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#19207](https://github.com/community-scripts/ProxmoxVE/pull/19207))
- speedtest-tracker: install cron for the scheduler [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#19209](https://github.com/community-scripts/ProxmoxVE/pull/19209))
- VMs: allocate the EFI disk through vm_alloc_efi_disk [@MickLesk](https://github.com/MickLesk) ([#19206](https://github.com/community-scripts/ProxmoxVE/pull/19206))
- Authelia: drop the base_settings call before variables [@MickLesk](https://github.com/MickLesk) ([#19180](https://github.com/community-scripts/ProxmoxVE/pull/19180))
- koillection: bump PHP from 8.5 to 8.6 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19200](https://github.com/community-scripts/ProxmoxVE/pull/19200))
- nocobase: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19194](https://github.com/community-scripts/ProxmoxVE/pull/19194))
- formbricks: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19193](https://github.com/community-scripts/ProxmoxVE/pull/19193))
- #### 🔧 Refactor
- Frigate: install without the Intel media driver when Intel's repository is unreachable [@MickLesk](https://github.com/MickLesk) ([#19063](https://github.com/community-scripts/ProxmoxVE/pull/19063))
### 💾 Core
- vm_alloc_efi_disk: pass a failed qm set on | Let Proxmox allocate and initialize the VM EFI disk [@MickLesk](https://github.com/MickLesk) ([core#327](https://github.com/community-scripts/core/pull/327))
## 2026-11-29
### 🆕 New Scripts
- Organizr [@MickLesk](https://github.com/MickLesk) ([#19178](https://github.com/community-scripts/ProxmoxVE/pull/19178))
- Hindsight [@andy-vdg](https://github.com/andy-vdg) ([#19179](https://github.com/community-scripts/ProxmoxVE/pull/19179))
- CloudPanel [@TaiKamilla](https://github.com/TaiKamilla) ([#19176](https://github.com/community-scripts/ProxmoxVE/pull/19176))
- Organizr [@MickLesk](https://github.com/MickLesk) ([#19178](https://github.com/community-scripts/ProxmoxVE/pull/19178))
- NocoBase [@MickLesk](https://github.com/MickLesk) ([#19177](https://github.com/community-scripts/ProxmoxVE/pull/19177))
### 💾 Core
+61
View File
@@ -0,0 +1,61 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: andy-vdg
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://agentgateway.dev/
APP="agentgateway"
var_tags="${var_tags:-ai;proxy;mcp}"
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_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /etc/agentgateway/config.yaml ]]; then
msg_error "No agentgateway Installation Found!"
exit
fi
if check_for_gh_release "agentgateway" "agentgateway/agentgateway"; then
msg_info "Stopping Service"
systemctl stop agentgateway
msg_ok "Stopped Service"
create_backup /etc/agentgateway /opt/agentgateway_data
fetch_and_deploy_gh_release "agentgateway" "agentgateway/agentgateway" "singlefile" "latest" "/opt/agentgateway" "agentgateway-linux-$(arch_resolve "amd64" "arm64")"
restore_backup
msg_info "Starting Service"
systemctl start agentgateway
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 "${GATEWAY}${BGN}http://${IP}:4000/ui${CL}"
-2
View File
@@ -17,8 +17,6 @@ var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
base_settings
variables
color
catch_errors
+1
View File
@@ -48,6 +48,7 @@ function update_script() {
$STD corepack prepare "pnpm@${PNPM_VERSION}" --activate
$STD pnpm install --frozen-lockfile
$STD pnpm --filter @bookorbit/types run build
# vite's bundler (rolldown) crashes at random on some builds, rolldown#10860.
for attempt in 1 2 3; do
$STD pnpm --filter client run build-only && break
+62
View File
@@ -0,0 +1,62 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: TaiKamilla
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.cloudpanel.io/
APP="CloudPanel"
var_tags="${var_tags:-webserver;hosting;php}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-20}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_db_engine="${var_db_engine:-}"
export var_admin_user="${var_admin_user:-}"
export var_admin_email="${var_admin_email:-}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /home/clp/htdocs/app/data/db.sq3 ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
$STD apt update
if [[ -z "$(apt list --upgradable 2>/dev/null | grep '/')" ]]; then
msg_ok "No update required. ${APP} is already up to date"
exit
fi
msg_info "Updating CloudPanel"
$STD clp-update
$STD apt -y --with-new-pkgs --allow-downgrades upgrade
msg_ok "Updated CloudPanel"
msg_ok "Updated successfully!"
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}https://${IP}:8443${CL}"
echo -e "${INFO}${YW}Admin credentials: ~/cloudpanel.creds (inside the container)${CL}"
+36 -69
View File
@@ -35,52 +35,46 @@ function update_script() {
[[ -d /opt/musicseerr ]] && MIGRATING=true
if [[ "$MIGRATING" == "true" ]] || check_for_gh_release "droppedneedle" "DroppedNeedle/DroppedNeedle"; then
FROM_V2=false
[[ "$MIGRATING" == "true" || -d /opt/droppedneedle/venv ]] && FROM_V2=true
OLD_VERSION="$(cat ~/.droppedneedle 2>/dev/null || true)"
if [[ "$MIGRATING" == "true" ]]; then
msg_warn "Migrating Musicseerr to DroppedNeedle"
msg_info "Stopping Musicseerr Service"
systemctl disable -q --now musicseerr
msg_ok "Stopped Musicseerr Service"
DATA_DIR="/opt/musicseerr/backend"
else
msg_info "Stopping Service"
systemctl stop droppedneedle
msg_ok "Stopped Service"
DATA_DIR="/opt/droppedneedle/backend"
fi
create_backup "$DATA_DIR/config" "$DATA_DIR/cache"
PYTHON_VERSION="3.13" setup_uv
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "droppedneedle" "DroppedNeedle/DroppedNeedle" "tarball"
NODE_VERSION="25" NODE_MODULE="pnpm@10.33.0" setup_nodejs
msg_info "Building Frontend"
cd /opt/droppedneedle/frontend
export NODE_OPTIONS="--max-old-space-size=3072"
rm -rf node_modules build
$STD pnpm install --frozen-lockfile
$STD pnpm run build
msg_ok "Built Frontend"
msg_info "Updating Application"
mkdir -p /opt/droppedneedle/backend/config /opt/droppedneedle/backend/cache
$STD uv venv --clear /opt/droppedneedle/venv
$STD uv pip install -r /opt/droppedneedle/backend/requirements.txt --python=/opt/droppedneedle/venv/bin/python
rm -rf /opt/droppedneedle/backend/static
cp -r /opt/droppedneedle/frontend/build /opt/droppedneedle/backend/static
msg_ok "Updated Application"
restore_backup
ensure_dependencies ffmpeg python3
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="backend/config backend/cache backend/plugins backend/imports frontend" fetch_and_deploy_gh_release "droppedneedle" "DroppedNeedle/DroppedNeedle" "prebuild" "latest" "/opt/droppedneedle" "droppedneedle-v*-$(arch_resolve x86_64 aarch64)-linux.tar.gz" &&
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "droppedneedle-frontend" "DroppedNeedle/DroppedNeedle" "prebuild" "latest" "/opt/droppedneedle/frontend" "droppedneedle-frontend-v*.tar.gz" || {
echo "$OLD_VERSION" >~/.droppedneedle
msg_error "Download failed; the old version stays recorded, run update again"
exit 1
}
rm -f /usr/local/bin/droppedneedle /usr/local/bin/droppedneedle-tool
if [[ "$MIGRATING" == "true" ]]; then
msg_info "Migrating Musicseerr Data"
rm -rf /opt/droppedneedle/backend/config /opt/droppedneedle/backend/cache
mkdir -p /opt/droppedneedle/backend
cp -a /opt/musicseerr/backend/config /opt/droppedneedle/backend/config
cp -a /opt/musicseerr/backend/cache /opt/droppedneedle/backend/cache
rm -f /etc/systemd/system/musicseerr.service
sed -i 's/musicseerr/droppedneedle/g' /bin/update
rm -rf /opt/musicseerr
msg_ok "Migrated Musicseerr Data"
fi
mkdir -p /opt/droppedneedle/backend/{config,cache,plugins,imports}
msg_info "Replacing systemd Service"
cat <<EOF >/etc/systemd/system/droppedneedle.service
msg_info "Writing systemd Service"
SLSKD_LINE="$(grep -s '^Environment=SLSKD_DOWNLOADS_PATH=' /etc/systemd/system/droppedneedle.service || echo '# Environment=SLSKD_DOWNLOADS_PATH=<path-to-slskd-downloads>')"
cat <<EOF >/etc/systemd/system/droppedneedle.service
[Unit]
Description=DroppedNeedle Service
After=network.target
@@ -90,59 +84,32 @@ Type=simple
User=root
WorkingDirectory=/opt/droppedneedle/backend
Environment=ROOT_APP_DIR=/opt/droppedneedle/backend
Environment=DROPPEDNEEDLE_STATIC_DIR=/opt/droppedneedle/frontend/static
Environment=PORT=8688
Environment=COMMIT_TAG=v$(<~/.droppedneedle)
# Environment=SLSKD_DOWNLOADS_PATH=<path-to-slskd-downloads>
ExecStart=/opt/droppedneedle/venv/bin/python -m maintenance.automatic_upgrade --start-target
Environment=TZ=$(cat /etc/timezone 2>/dev/null || echo Etc/UTC)
${SLSKD_LINE}
ExecStart=/opt/droppedneedle/droppedneedle
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
rm -f /etc/systemd/system/musicseerr.service
msg_ok "Replaced systemd Service"
else
if ! grep -q 'SLSKD' /etc/systemd/system/droppedneedle.service; then
sed -i '\|=8688$|a# Environment=SLSKD_DOWNLOADS_PATH=<path-to-slskd-downloads>' /etc/systemd/system/droppedneedle.service
fi
sed -i 's|^ExecStart=.*|ExecStart=/opt/droppedneedle/venv/bin/python -m maintenance.automatic_upgrade --start-target|' /etc/systemd/system/droppedneedle.service
if grep -q '^Environment=COMMIT_TAG=' /etc/systemd/system/droppedneedle.service; then
sed -i "s|^Environment=COMMIT_TAG=.*|Environment=COMMIT_TAG=v$(<~/.droppedneedle)|" /etc/systemd/system/droppedneedle.service
else
sed -i "\|=8688$|a Environment=COMMIT_TAG=v$(<~/.droppedneedle)" /etc/systemd/system/droppedneedle.service
fi
fi
systemctl daemon-reload
if [[ "$MIGRATING" == "true" ]]; then
msg_info "Enabling DroppedNeedle Service"
systemctl enable -q --now droppedneedle
msg_ok "Enabled DroppedNeedle Service"
systemctl enable -q droppedneedle
msg_ok "Wrote systemd Service"
sed -i 's/musicseerr/droppedneedle/g' /bin/update
rm -rf /opt/musicseerr
msg_info "Waiting up to 1min for backend to boot and retrieve Admin Username"
for i in {1..30}; do
username=$(/opt/droppedneedle/venv/bin/python -c 'import sqlite3; conn = sqlite3.connect("/opt/droppedneedle/backend/cache/library.db"); c = conn.cursor(); c.execute("SELECT username FROM auth_users WHERE role=\"admin\""); admin=c.fetchone(); print(admin[0]) if (admin and admin[0]) else None' 2>/dev/null || true)
if [[ -n "$username" ]]; then
break
fi
sleep 2
done
if [[ -n "$username" ]]; then
msg_ok "Admin Username retrieved (Admin Username is: ${username})"
else
msg_warn "Failed to retrieve Admin Username. The backend might still be starting."
fi
msg_ok "Migrated successfully!"
else
msg_info "Starting Service"
systemctl start droppedneedle
msg_ok "Started Service"
msg_ok "Updated successfully!"
rm -rf /opt/droppedneedle/venv
msg_info "Starting Service"
systemctl start droppedneedle
msg_ok "Started Service"
if [[ "$FROM_V2" == "true" ]]; then
msg_warn "DroppedNeedle 3 needs a one-time upgrade of the v2 data: open http://${LOCAL_IP}:8688 and sign in with a v2 admin."
msg_warn "Before pressing Upgrade: single sign-on and Spotify callback URLs move from /api/v1 to /api/v3. See docs/upgrading-from-v2.md upstream."
msg_warn "No v2 admin with a password? The one-time sign-in code is in: journalctl -u droppedneedle | grep 'upgrade sign-in code'"
fi
msg_ok "Updated successfully!"
fi
exit
}
+1 -1
View File
@@ -54,7 +54,7 @@ function update_script() {
msg_ok "Stopped Formbricks"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "formbricks" "formbricks/formbricks" "tarball"
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs
NODE_VERSION="26" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs
msg_info "Building Formbricks (Patience)"
cd /opt/formbricks
+75
View File
@@ -0,0 +1,75 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: andy-vdg
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://hindsight.vectorize.io/
APP="Hindsight"
var_tags="${var_tags:-ai;memory;mcp}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-12}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
export var_llm_provider="${var_llm_provider:-}"
export var_llm_api_key="${var_llm_api_key:-}"
export var_llm_model="${var_llm_model:-}"
export var_llm_base_url="${var_llm_base_url:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/hindsight ]]; then
msg_error "No Hindsight Installation Found!"
exit
fi
if check_for_gh_release "hindsight" "vectorize-io/hindsight"; then
msg_info "Stopping Hindsight"
systemctl stop hindsight
msg_ok "Stopped Hindsight"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hindsight" "vectorize-io/hindsight" "tarball"
PYTHON_VERSION="3.11" UV_PROJECT_DIR="/opt/hindsight" setup_uv
msg_info "Updating Python Environment"
cd /opt/hindsight
$STD uv sync --locked --package hindsight-api-slim --extra local-ml
HOME=/opt/hindsight_data $STD /opt/hindsight/.venv/bin/python -c "from sentence_transformers import SentenceTransformer, CrossEncoder; from hindsight_api.config import DEFAULT_EMBEDDINGS_LOCAL_MODEL as E, DEFAULT_RERANKER_LOCAL_MODEL as R; SentenceTransformer(E); CrossEncoder(R)"
if ! grep -q '^HF_HUB_OFFLINE=' /opt/hindsight.env; then
cat <<EOF >>/opt/hindsight.env
HF_HUB_OFFLINE=1
EOF
fi
msg_ok "Updated Python Environment"
msg_info "Starting Hindsight"
systemctl start hindsight
msg_ok "Started Hindsight"
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 the API and its interactive docs using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8888/docs${CL}"
echo -e "${INFO}${YW}API key: ~/hindsight.creds (inside the container)${CL}"
+38 -6
View File
@@ -31,12 +31,41 @@ function update_script() {
exit
fi
if [[ ! -f /etc/systemd/system/kan-api.service ]]; then
msg_info "Creating API Service"
cat <<EOF >/etc/systemd/system/kan-api.service
[Unit]
Description=Kan API
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/kan/apps/api/dist
EnvironmentFile=/opt/kan/.env
ExecStart=/usr/bin/node main.mjs
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
if [[ -f /opt/kan/apps/api/build.mjs ]]; then
cd /opt/kan/apps/api
$STD node build.mjs
systemctl enable -q --now kan-api
fi
msg_ok "Created API Service"
fi
if check_for_gh_tag "kan" "kanbn/kan"; then
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
msg_info "Stopping Service"
systemctl stop kan
msg_ok "Stopped Service"
msg_info "Stopping Services"
systemctl stop kan kan-api
msg_ok "Stopped Services"
create_backup /opt/kan/.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest"
@@ -50,6 +79,8 @@ function update_script() {
export CI=true
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
$STD pnpm build --filter=@kan/web
cd /opt/kan/apps/api
$STD node build.mjs
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
msg_ok "Built Application"
@@ -64,9 +95,10 @@ function update_script() {
$STD pnpm exec drizzle-kit migrate
msg_ok "Ran Database Migrations"
msg_info "Starting Service"
msg_info "Starting Services"
systemctl enable -q --now kan-api
systemctl start kan
msg_ok "Started Service"
msg_ok "Started Services"
msg_ok "Updated successfully!"
fi
exit
+1 -1
View File
@@ -34,7 +34,7 @@ function update_script() {
systemctl stop apache2
msg_ok "Stopped Service"
PHP_VERSION="8.5" PHP_APACHE="YES" setup_php
PHP_VERSION="8.6" PHP_APACHE="YES" setup_php
setup_composer
msg_info "Creating a backup"
+95
View File
@@ -0,0 +1,95 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Stephen Chin (steveonjava)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/langfuse/langfuse
APP="Langfuse"
var_tags="${var_tags:-ai;monitoring;analytics}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-16384}"
var_disk="${var_disk:-100}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
export var_admin_email="${var_admin_email:-}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/langfuse || ! -f /opt/langfuse_data/.env ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "seaweedfs" "seaweedfs/seaweedfs"; then
msg_info "Stopping SeaweedFS"
systemctl stop langfuse-storage
msg_ok "Stopped SeaweedFS"
fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_$(arch_resolve).tar.gz"
msg_info "Starting SeaweedFS"
systemctl start langfuse-storage
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:8333/healthz
msg_ok "Started SeaweedFS"
fi
if check_for_gh_release "migrate" "golang-migrate/migrate"; then
fetch_and_deploy_gh_release "migrate" "golang-migrate/migrate" "binary"
fi
if check_for_gh_release "langfuse" "langfuse/langfuse"; then
msg_warn "Take a container snapshot before updating Langfuse; database migrations cannot be rolled back by this script."
msg_info "Stopping Langfuse"
systemctl stop langfuse-web langfuse-worker
msg_ok "Stopped Langfuse"
create_backup "$HOME/.langfuse"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "langfuse" "langfuse/langfuse" "tarball"
restore_backup
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.engines.pnpm' /opt/langfuse/package.json)" setup_nodejs
RUST_TOOLCHAIN="$(sed -n 's/^channel = "\(.*\)"/\1/p' /opt/langfuse/packages/native/rust-toolchain.toml)" RUST_PROFILE="minimal" setup_rust
msg_info "Building Langfuse"
cd /opt/langfuse
HUSKY=0 $STD pnpm install --frozen-lockfile
DOCKER_BUILD=1 NEXT_TELEMETRY_DISABLED=1 CI=true pnpm_config_verify_deps_before_run=false $STD pnpm turbo run build --filter=web... --filter=worker... --concurrency=1
cp -r web/.next/static web/.next/standalone/web/.next/
cp -r web/public web/.next/standalone/web/
msg_ok "Built Langfuse"
msg_info "Starting Langfuse"
systemctl restart langfuse-migrate
systemctl start langfuse-web langfuse-worker
$STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3000/api/public/ready
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3030/api/health
cat <<EOF >"$HOME/.langfuse"
$(jq -r '.version' /opt/langfuse/package.json)
EOF
msg_ok "Started Langfuse"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:3000${CL}"
+1
View File
@@ -94,6 +94,7 @@ EOF
$STD sed -i "s|https://github.com/mealie-recipes/mealie/commit/|https://github.com/mealie-recipes/mealie/releases/tag/|g" "$SITE_SETTINGS"
$STD sed -i "s|value: data.buildId,|value: \"v${MEALIE_VERSION}\",|g" "$SITE_SETTINGS"
$STD sed -i "s|value: data.production ? i18n.t(\"about.production\") : i18n.t(\"about.development\"),|value: \"bare-metal\",|g" "$SITE_SETTINGS"
$STD sed -i "s|^__version__ = .*|__version__ = \"${MEALIE_VERSION}\"|" /opt/mealie/mealie/__init__.py
export NUXT_TELEMETRY_DISABLED=1
cd /opt/mealie/frontend
if [[ "${FRONTEND_PKG}" == "pnpm" ]]; then
+1 -1
View File
@@ -45,7 +45,7 @@ function update_script() {
exit
fi
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
msg_info "Stopping NocoBase"
systemctl stop nocobase
+92
View File
@@ -0,0 +1,92 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: a55uka (a55uka)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/TheSpaghettiDetective/obico-server
APP="Obico"
var_tags="${var_tags:-3d-printing;monitoring;ai}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-15}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}" # arm64 verified: CI install + health check passed
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/obico ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_branch "obico" "TheSpaghettiDetective/obico-server" "release"; then
msg_info "Stopping Services"
systemctl stop obico-tasks obico-web obico-ml-api
msg_ok "Stopped Services"
create_backup /opt/obico/.env
fetch_and_deploy_gh_branch "obico" "TheSpaghettiDetective/obico-server" "release" "/opt/obico"
sed -i "s/^VERSION=.*/VERSION=$(cat ~/.obico)/" /opt/obico/.env
MOONRAKER_SHA=$(grep -oP 'checkout \K[a-f0-9]{40}' /opt/obico/backend/Dockerfile.base)
if [[ -n "$MOONRAKER_SHA" && "$(git -C /opt/moonraker rev-parse HEAD 2>/dev/null)" != "$MOONRAKER_SHA" ]]; then
msg_info "Updating Moonraker Metadata Library"
[[ -d /opt/moonraker/.git ]] || $STD git clone https://github.com/Arksine/moonraker.git /opt/moonraker
$STD git -C /opt/moonraker fetch --depth 1 origin "$MOONRAKER_SHA"
$STD git -C /opt/moonraker checkout "$MOONRAKER_SHA"
msg_ok "Updated Moonraker Metadata Library"
fi
IMPORTLIB_METADATA_PIN=$(grep -oP 'importlib_metadata==\K[0-9.]+' /opt/obico/backend/Dockerfile.base)
msg_info "Updating Python Environments"
cd /opt/obico/backend
$STD uv pip install -p .venv/bin/python -r requirements.txt
$STD uv pip install -p .venv/bin/python "importlib_metadata==${IMPORTLIB_METADATA_PIN}"
cd /opt/obico/ml_api
$STD uv pip install -p .venv/bin/python -r requirements.txt onnxruntime opencv-python-headless
msg_ok "Updated Python Environments"
if [[ "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.sha256)" != "$(sha256sum /model_cache/ml_api/onnx/model-weights.onnx | cut -d' ' -f1)" ]]; then
msg_info "Downloading Failure Detection Model"
bash /opt/obico/ml_api/scripts/fetch_verified.sh "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.url)" /model_cache/ml_api/onnx/model-weights.onnx 50000000 "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.sha256)"
msg_ok "Downloaded Failure Detection Model"
fi
msg_info "Running Database Migrations"
set -a
source /opt/obico/.env
set +a
cd /opt/obico/backend
$STD .venv/bin/python manage.py migrate --noinput
$STD .venv/bin/python manage.py collectstatic --noinput
msg_ok "Ran Database Migrations"
msg_info "Starting Services"
systemctl start obico-ml-api obico-web obico-tasks
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}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:3334${CL}"
+65
View File
@@ -0,0 +1,65 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/roundcube/roundcubemail
APP="Roundcube"
var_tags="${var_tags:-mail;webmail}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_imap_host="${var_imap_host:-}"
export var_smtp_host="${var_smtp_host:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/roundcube ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "roundcube" "roundcube/roundcubemail"; then
msg_info "Stopping Roundcube"
systemctl stop nginx
msg_ok "Stopped Roundcube"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "roundcube" "roundcube/roundcubemail" "prebuild" "latest" "/opt/roundcube_update" "roundcubemail-*-complete.tar.gz"
msg_info "Updating Roundcube"
$STD php /opt/roundcube_update/bin/installto.sh -y /opt/roundcube
rm -rf /opt/roundcube_update
chown -R www-data:www-data /opt/roundcube /opt/roundcube_data
msg_ok "Updated Roundcube"
msg_info "Starting Roundcube"
systemctl start nginx
msg_ok "Started Roundcube"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
+2
View File
@@ -31,6 +31,8 @@ function update_script() {
exit
fi
ensure_dependencies cron
if check_for_gh_release "speedtest-tracker" "alexjustesen/speedtest-tracker"; then
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
setup_composer
+59
View File
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/warp-tech/warpgate
APP="Warpgate"
var_tags="${var_tags:-bastion;ssh;security}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /opt/warpgate/warpgate ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "warpgate" "warp-tech/warpgate"; then
msg_info "Stopping Warpgate"
systemctl stop warpgate
msg_ok "Stopped Warpgate"
fetch_and_deploy_gh_release "warpgate" "warp-tech/warpgate" "singlefile" "latest" "/opt/warpgate" "warpgate-v*-$(arch_resolve "x86_64" "arm64")-linux"
msg_info "Starting Warpgate"
systemctl start warpgate
msg_ok "Started Warpgate"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}https://${IP}:8888/@warpgate${CL}"
echo -e "${INFO}${YW}Admin login: admin, password in /opt/warpgate_data/.env (inside the container)${CL}"
+59
View File
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: andy-vdg
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://agentgateway.dev/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "agentgateway" "agentgateway/agentgateway" "singlefile" "latest" "/opt/agentgateway" "agentgateway-linux-$(arch_resolve "amd64" "arm64")"
msg_info "Configuring agentgateway"
mkdir -p /etc/agentgateway /opt/agentgateway_data
cat <<EOF >/etc/agentgateway/config.yaml
# yaml-language-server: \$schema=https://agentgateway.dev/schema/config
# The config agentgateway bootstraps on first run: traffic and the UI on port 4000,
# state in SQLite. The UI has no login until you add policies:
# https://agentgateway.dev/docs/standalone/latest/documentation/setup/ui/secure-ui/
config:
database:
url: sqlite:///opt/agentgateway_data/data.db
gateways:
default:
port: 4000
ui:
gateways: default
EOF
chmod 600 /etc/agentgateway/config.yaml
msg_ok "Configured agentgateway"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/agentgateway.service
[Unit]
Description=agentgateway
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
ExecStart=/opt/agentgateway/agentgateway -f /etc/agentgateway/config.yaml
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now agentgateway
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+1
View File
@@ -33,6 +33,7 @@ PNPM_VERSION=$(jq -r '.packageManager | ltrimstr("pnpm@")' /opt/bookorbit/packag
$STD corepack prepare "pnpm@${PNPM_VERSION}" --activate
$STD pnpm install --frozen-lockfile
$STD pnpm --filter @bookorbit/types run build
# vite's bundler (rolldown) crashes at random on some builds, rolldown#10860.
for attempt in 1 2 3; do
$STD pnpm --filter client run build-only && break
+67
View File
@@ -0,0 +1,67 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: TaiKamilla
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.cloudpanel.io/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
var_db_engine="${var_db_engine:-MARIADB_12.3}"
if [[ ! "$var_db_engine" =~ ^(MARIADB_12\.3|MARIADB_11\.8|MYSQL_8\.4)$ ]]; then
msg_warn "Unsupported database engine '${var_db_engine}', using MARIADB_12.3"
var_db_engine="MARIADB_12.3"
fi
var_admin_user="${var_admin_user:-admin}"
if [[ ! "$var_admin_user" =~ ^[A-Za-z0-9._-]{3,}$ ]]; then
msg_warn "Invalid admin user '${var_admin_user}' (3+ letters, digits, dots, dashes or underscores), using admin"
var_admin_user="admin"
fi
var_admin_email="${var_admin_email:-admin@example.com}"
if [[ ! "$var_admin_email" =~ ^[^@[:space:]]+@[^@[:space:]]+\.[^@[:space:]]+$ ]]; then
msg_warn "Invalid admin email '${var_admin_email}', using admin@example.com"
var_admin_email="admin@example.com"
fi
var_admin_pass="${var_admin_pass:-$(random_password 20)}"
confirm_external_installer "https://www.cloudpanel.io/" "https://installer.cloudpanel.io/ce/v2/install.sh"
msg_info "Installing Dependencies"
$STD apt install -y openssh-server wget
msg_ok "Installed Dependencies"
msg_info "Installing CloudPanel (Patience)"
curl_with_retry "https://installer.cloudpanel.io/ce/v2/install.sh" /tmp/cloudpanel-install.sh
if ! sha256sum -c --status <<<"8146dbe0a488e7088b04071b0c34d59aa0ab1fe9dcec382d395fd155c9e6c476 /tmp/cloudpanel-install.sh"; then
msg_error "The CloudPanel installer does not match the checksum published in its documentation"
exit 1
fi
# SWAP=false: dphys-swapfile cannot manage swap inside a container
$STD env HOME=/root SWAP=false DB_ENGINE="$var_db_engine" bash /tmp/cloudpanel-install.sh
rm -f /tmp/cloudpanel-install.sh
systemctl disable -q --now chrony
if systemctl is-failed -q chrony; then
systemctl reset-failed chrony
fi
msg_ok "Installed CloudPanel"
msg_info "Creating CloudPanel Admin"
$STD clpctl user:add --userName="$var_admin_user" --email="$var_admin_email" --firstName="Admin" --lastName="CloudPanel" --password="$var_admin_pass" --role="admin" --timezone="UTC" --status="1"
cat <<EOF >~/cloudpanel.creds
CloudPanel Admin
URL: https://${LOCAL_IP}:8443
Username: ${var_admin_user}
Password: ${var_admin_pass}
EOF
chmod 600 ~/cloudpanel.creds
msg_ok "Created CloudPanel Admin"
motd_ssh
customize
cleanup_lxc
+11 -18
View File
@@ -13,24 +13,15 @@ setting_up_container
network_check
update_os
PYTHON_VERSION="3.13" setup_uv
fetch_and_deploy_gh_release "droppedneedle" "DroppedNeedle/DroppedNeedle" "tarball"
NODE_VERSION="25" NODE_MODULE="pnpm@10.33.0" setup_nodejs
msg_info "Installing Dependencies"
$STD apt install -y \
ffmpeg \
python3
msg_ok "Installed Dependencies"
msg_info "Building Frontend"
cd /opt/droppedneedle/frontend
export NODE_OPTIONS="--max-old-space-size=3072"
$STD pnpm install --frozen-lockfile
$STD pnpm run build
msg_ok "Built Frontend"
msg_info "Setting up Application"
mkdir -p /opt/droppedneedle/backend/config /opt/droppedneedle/backend/cache
$STD uv venv /opt/droppedneedle/venv
$STD uv pip install -r /opt/droppedneedle/backend/requirements.txt --python=/opt/droppedneedle/venv/bin/python
rm -rf /opt/droppedneedle/backend/static
cp -r /opt/droppedneedle/frontend/build /opt/droppedneedle/backend/static
msg_ok "Set up Application"
fetch_and_deploy_gh_release "droppedneedle" "DroppedNeedle/DroppedNeedle" "prebuild" "latest" "/opt/droppedneedle" "droppedneedle-v*-$(arch_resolve x86_64 aarch64)-linux.tar.gz"
fetch_and_deploy_gh_release "droppedneedle-frontend" "DroppedNeedle/DroppedNeedle" "prebuild" "latest" "/opt/droppedneedle/frontend" "droppedneedle-frontend-v*.tar.gz"
mkdir -p /opt/droppedneedle/backend/{config,cache,plugins,imports}
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/droppedneedle.service
@@ -43,10 +34,12 @@ Type=simple
User=root
WorkingDirectory=/opt/droppedneedle/backend
Environment=ROOT_APP_DIR=/opt/droppedneedle/backend
Environment=DROPPEDNEEDLE_STATIC_DIR=/opt/droppedneedle/frontend/static
Environment=PORT=8688
Environment=COMMIT_TAG=v$(<~/.droppedneedle)
Environment=TZ=$(cat /etc/timezone 2>/dev/null || echo Etc/UTC)
# Environment=SLSKD_DOWNLOADS_PATH=<path-to-slskd-downloads>
ExecStart=/opt/droppedneedle/venv/bin/python -m maintenance.automatic_upgrade --start-target
ExecStart=/opt/droppedneedle/droppedneedle
Restart=on-failure
RestartSec=5
+1 -1
View File
@@ -26,7 +26,7 @@ PG_DB_NAME="spicedb" PG_DB_USER="spicedb" setup_postgresql_db
fetch_and_deploy_gh_release "spicedb" "authzed/spicedb" "binary"
fetch_and_deploy_gh_release "formbricks" "formbricks/formbricks" "tarball"
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs
NODE_VERSION="26" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs
msg_info "Building Formbricks (Patience)"
cd /opt/formbricks
+12 -9
View File
@@ -124,15 +124,18 @@ msg_ok "Built SQLite Extensions"
if [[ "$(arch_resolve)" == "amd64" ]]; then
msg_info "Building Intel Media Driver (Patience)"
download_gpg_key "https://repositories.intel.com/gpu/intel-graphics.key" "/usr/share/keyrings/intel-graphics.gpg" "dearmor"
sed -i '/intel-graphics.key/d' /opt/frigate/docker/main/build_intel_media_driver.sh
$STD bash /opt/frigate/docker/main/build_intel_media_driver.sh
cp -a /rootfs/. /
rm -rf /rootfs
rm -f /etc/apt/sources.list.d/intel-gpu-jammy.list /usr/share/keyrings/intel-graphics.gpg
apt_update_safe
ldconfig
msg_ok "Built Intel Media Driver"
if download_gpg_key "https://repositories.intel.com/gpu/intel-graphics.key" "/usr/share/keyrings/intel-graphics.gpg" "dearmor"; then
sed -i '/intel-graphics.key/d' /opt/frigate/docker/main/build_intel_media_driver.sh
$STD bash /opt/frigate/docker/main/build_intel_media_driver.sh
cp -a /rootfs/. /
rm -rf /rootfs
rm -f /etc/apt/sources.list.d/intel-gpu-jammy.list /usr/share/keyrings/intel-graphics.gpg
apt_update_safe
ldconfig
msg_ok "Built Intel Media Driver"
else
msg_warn "Intel's package repository cannot be reached from this network; Frigate is installed without the Intel media driver"
fi
fi
fetch_and_deploy_gh_release "go2rtc" "AlexxIT/go2rtc" "singlefile" "v1.9.14" "/usr/local/go2rtc/bin" "go2rtc_linux_$(arch_resolve)"
+89
View File
@@ -0,0 +1,89 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: andy-vdg
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://hindsight.vectorize.io/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
PG_VERSION="18" PG_MODULES="pgvector" setup_postgresql
PG_DB_NAME="hindsight" PG_DB_USER="hindsight" PG_DB_EXTENSIONS="vector,pg_trgm,btree_gin" setup_postgresql_db
fetch_and_deploy_gh_release "hindsight" "vectorize-io/hindsight" "tarball"
PYTHON_VERSION="3.11" UV_PROJECT_DIR="/opt/hindsight" setup_uv
msg_info "Setting up Python Environment"
cd /opt/hindsight
$STD uv sync --locked --package hindsight-api-slim --extra local-ml
msg_ok "Set up Python Environment"
msg_info "Downloading Embedding and Reranker Models"
mkdir -p /opt/hindsight_data
HOME=/opt/hindsight_data $STD /opt/hindsight/.venv/bin/python -c "from sentence_transformers import SentenceTransformer, CrossEncoder; from hindsight_api.config import DEFAULT_EMBEDDINGS_LOCAL_MODEL as E, DEFAULT_RERANKER_LOCAL_MODEL as R; SentenceTransformer(E); CrossEncoder(R)"
msg_ok "Downloaded Embedding and Reranker Models"
msg_info "Configuring Hindsight"
API_KEY=$(random_password 48)
cat <<EOF >/opt/hindsight.env
HINDSIGHT_API_HOST=0.0.0.0
HINDSIGHT_API_PORT=8888
HINDSIGHT_API_DATABASE_URL=postgresql://${PG_DB_USER}:${PG_DB_PASS}@127.0.0.1:5432/${PG_DB_NAME}
HINDSIGHT_API_TENANT_EXTENSION=hindsight_api.extensions.builtin.tenant:ApiKeyTenantExtension
HINDSIGHT_API_TENANT_API_KEY=${API_KEY}
HINDSIGHT_API_LLM_PROVIDER=${var_llm_provider:-none}
HINDSIGHT_API_LLM_API_KEY=${var_llm_api_key:-}
HINDSIGHT_API_LLM_MODEL=${var_llm_model:-}
HINDSIGHT_API_LLM_BASE_URL=${var_llm_base_url:-}
TRANSFORMERS_VERBOSITY=error
HF_HUB_VERBOSITY=error
TOKENIZERS_PARALLELISM=false
# models are cached at install; online, startup stalls on a slow huggingface.co (vectorize-io/hindsight#6494)
HF_HUB_OFFLINE=1
EOF
sed -i '/=$/d' /opt/hindsight.env
chmod 600 /opt/hindsight.env
cat <<EOF >>~/hindsight.creds
Hindsight API Key: ${API_KEY}
EOF
chmod 600 ~/hindsight.creds
msg_ok "Configured Hindsight"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/hindsight.service
[Unit]
Description=Hindsight API
Wants=network-online.target
After=network-online.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/hindsight_data
Environment=HOME=/opt/hindsight_data
Environment=PYTHONUNBUFFERED=1
EnvironmentFile=/opt/hindsight.env
ExecStart=/opt/hindsight/.venv/bin/hindsight-api
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now hindsight
msg_ok "Created Service"
if [[ "${var_llm_provider:-none}" == "none" ]]; then
msg_warn "No LLM configured: Hindsight stores plain chunks only. Set HINDSIGHT_API_LLM_PROVIDER and its key in /opt/hindsight.env, then run systemctl restart hindsight"
fi
motd_ssh
customize
cleanup_lxc
+28 -5
View File
@@ -34,9 +34,11 @@ BETTER_AUTH_TRUSTED_ORIGINS=http://${LOCAL_IP}:3000
POSTGRES_URL=postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}
NEXT_PUBLIC_ALLOW_CREDENTIALS=true
TRELLO_APP_API_KEY=
TRELLO_APP_API_SECRET=
TRELLO_APP_SECRET=
HOSTNAME=0.0.0.0
PORT=3000
API_PORT=4000
KAN_API_URL=http://127.0.0.1:4000
NODE_ENV=production
EOF
msg_ok "Configured Application"
@@ -49,6 +51,8 @@ $STD pnpm install --ignore-scripts --prod=false
export CI=true
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
$STD pnpm build --filter=@kan/web
cd /opt/kan/apps/api
$STD node build.mjs
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
msg_ok "Built Application"
@@ -63,12 +67,31 @@ cd /opt/kan/packages/db
POSTGRES_URL="postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}" $STD pnpm exec drizzle-kit migrate
msg_ok "Ran Database Migrations"
msg_info "Creating Service"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/kan-api.service
[Unit]
Description=Kan API
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/kan/apps/api/dist
EnvironmentFile=/opt/kan/.env
ExecStart=/usr/bin/node main.mjs
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/kan.service
[Unit]
Description=Kan Board
After=network.target postgresql.service
After=network.target postgresql.service kan-api.service
Requires=postgresql.service
Wants=kan-api.service
[Service]
Type=simple
@@ -82,8 +105,8 @@ RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now kan
msg_ok "Created Service"
systemctl enable -q --now kan-api kan
msg_ok "Created Services"
motd_ssh
customize
+1 -1
View File
@@ -15,7 +15,7 @@ update_os
NODE_VERSION="26" NODE_MODULE="yarn" setup_nodejs
PG_VERSION="16" setup_postgresql
PHP_VERSION="8.5" PHP_APACHE="YES" setup_php
PHP_VERSION="8.6" PHP_APACHE="YES" setup_php
setup_composer
PG_DB_NAME="koillection" PG_DB_USER="koillection" setup_postgresql_db
+254
View File
@@ -0,0 +1,254 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Stephen Chin (steveonjava)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/langfuse/langfuse
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
if [[ -z "${var_admin_email:-}" ]]; then
var_admin_email=$(prompt_input "Langfuse admin email:" "admin@example.com" 60)
fi
var_admin_email="${var_admin_email:-admin@example.com}"
if [[ ! "$var_admin_email" =~ ^[A-Za-z0-9_+-]+(\.[A-Za-z0-9_+-]+)*@([A-Za-z0-9][A-Za-z0-9-]*\.)+[A-Za-z]{2,}$ ]]; then
msg_warn "Invalid email '${var_admin_email}', falling back to admin@example.com"
var_admin_email="admin@example.com"
fi
var_admin_pass="${var_admin_pass:-}"
if [[ -n "$var_admin_pass" ]] && [[ ${#var_admin_pass} -lt 8 || "$var_admin_pass" == *[[:space:][:cntrl:]\"\'\\]* ]]; then
msg_warn "Admin password needs at least 8 characters and no spaces, quotes or backslashes, generating one"
var_admin_pass=""
fi
if [[ -z "$var_admin_pass" ]]; then
var_admin_pass=$(random_password 24)
fi
msg_info "Installing Dependencies"
$STD apt install -y build-essential redis-server
msg_ok "Installed Dependencies"
PG_VERSION="17" setup_postgresql
PG_DB_NAME="langfuse" PG_DB_USER="langfuse" setup_postgresql_db
setup_clickhouse
fetch_and_deploy_gh_release "langfuse" "langfuse/langfuse" "tarball"
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.engines.pnpm' /opt/langfuse/package.json)" setup_nodejs
RUST_TOOLCHAIN="$(sed -n 's/^channel = "\(.*\)"/\1/p' /opt/langfuse/packages/native/rust-toolchain.toml)" RUST_PROFILE="minimal" setup_rust
fetch_and_deploy_gh_release "migrate" "golang-migrate/migrate" "binary"
fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_$(arch_resolve).tar.gz"
msg_info "Building Langfuse"
cd /opt/langfuse
HUSKY=0 $STD pnpm install --frozen-lockfile
DOCKER_BUILD=1 NEXT_TELEMETRY_DISABLED=1 CI=true pnpm_config_verify_deps_before_run=false $STD pnpm turbo run build --filter=web... --filter=worker... --concurrency=1
cp -r web/.next/static web/.next/standalone/web/.next/
cp -r web/public web/.next/standalone/web/
msg_ok "Built Langfuse"
msg_info "Configuring Langfuse"
mkdir -p /opt/langfuse_data/storage
chmod 700 /opt/langfuse_data
REDIS_PASS=$(random_password 32)
CLICKHOUSE_PASS=$(random_password 32)
S3_SECRET=$(random_password 48)
PUBLIC_KEY="pk-lf-$(random_password 32)"
SECRET_KEY="sk-lf-$(random_password 32)"
cat <<EOF >/opt/langfuse_data/.env
NODE_ENV=production
NEXTAUTH_URL=http://${LOCAL_IP}:3000
NEXTAUTH_SECRET=$(random_password 48)
SALT=$(random_password 48)
ENCRYPTION_KEY=$(openssl rand -hex 32)
DATABASE_URL=postgresql://langfuse:${PG_DB_PASS}@127.0.0.1:5432/langfuse
DIRECT_URL=postgresql://langfuse:${PG_DB_PASS}@127.0.0.1:5432/langfuse
CLICKHOUSE_URL=http://127.0.0.1:8123
CLICKHOUSE_MIGRATION_URL=clickhouse://127.0.0.1:9000
CLICKHOUSE_USER=langfuse
CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASS}
CLICKHOUSE_DB=default
CLICKHOUSE_CLUSTER_ENABLED=false
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_AUTH=${REDIS_PASS}
LANGFUSE_S3_EVENT_UPLOAD_BUCKET=langfuse
LANGFUSE_S3_EVENT_UPLOAD_PREFIX=events/
LANGFUSE_S3_EVENT_UPLOAD_REGION=us-east-1
LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT=http://127.0.0.1:8333
LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID=langfuse
LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY=${S3_SECRET}
LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE=true
AUTH_DISABLE_SIGNUP=true
TELEMETRY_ENABLED=false
NEXT_TELEMETRY_DISABLED=1
LANGFUSE_INIT_ORG_ID=default-org
LANGFUSE_INIT_ORG_NAME=Default
LANGFUSE_INIT_PROJECT_ID=default-project
LANGFUSE_INIT_PROJECT_NAME=Default
LANGFUSE_INIT_PROJECT_PUBLIC_KEY=${PUBLIC_KEY}
LANGFUSE_INIT_PROJECT_SECRET_KEY=${SECRET_KEY}
LANGFUSE_INIT_USER_EMAIL=${var_admin_email}
LANGFUSE_INIT_USER_NAME=Admin
LANGFUSE_INIT_USER_PASSWORD=${var_admin_pass}
EOF
chmod 600 /opt/langfuse_data/.env
cat <<EOF >/etc/redis/langfuse.conf
bind 127.0.0.1 ::1
protected-mode yes
requirepass ${REDIS_PASS}
maxmemory-policy noeviction
appendonly yes
EOF
chown root:redis /etc/redis/langfuse.conf
chmod 640 /etc/redis/langfuse.conf
cat <<EOF >>/etc/redis/redis.conf
include /etc/redis/langfuse.conf
EOF
cat <<EOF >/etc/clickhouse-server/users.d/langfuse.xml
<clickhouse>
<users>
<default remove="remove"/>
<langfuse>
<password_sha256_hex>$(printf '%s' "${CLICKHOUSE_PASS}" | sha256sum | cut -d ' ' -f1)</password_sha256_hex>
<networks><ip>127.0.0.1</ip><ip>::1</ip></networks>
<profile>default</profile>
<quota>default</quota>
<access_management>1</access_management>
</langfuse>
</users>
</clickhouse>
EOF
chown clickhouse:clickhouse /etc/clickhouse-server/users.d/langfuse.xml
chmod 600 /etc/clickhouse-server/users.d/langfuse.xml
cat <<EOF >/etc/clickhouse-server/config.d/langfuse.xml
<clickhouse>
<listen_host replace="replace">127.0.0.1</listen_host>
<timezone>UTC</timezone>
</clickhouse>
EOF
cat <<EOF >/opt/langfuse_data/s3.json
{
"identities": [
{
"name": "langfuse",
"credentials": [{"accessKey": "langfuse", "secretKey": "${S3_SECRET}"}],
"actions": ["Admin", "Read", "Write", "List", "Tagging"]
}
]
}
EOF
chmod 600 /opt/langfuse_data/s3.json
msg_ok "Configured Langfuse"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/langfuse-storage.service
[Unit]
Description=Langfuse S3 Storage (SeaweedFS)
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/langfuse_data/storage
ExecStart=/opt/seaweedfs/weed server -dir=/opt/langfuse_data/storage -ip=127.0.0.1 -ip.bind=127.0.0.1 -s3 -s3.port=8333 -s3.port.iceberg=0 -s3.port.lance=0 -s3.config=/opt/langfuse_data/s3.json -master.telemetry=false
Restart=on-failure
RestartSec=5
UMask=0077
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/langfuse-migrate.service
[Unit]
Description=Langfuse Database Migrations
After=network.target postgresql.service clickhouse-server.service redis-server.service langfuse-storage.service
Wants=postgresql.service clickhouse-server.service redis-server.service langfuse-storage.service
Before=langfuse-web.service langfuse-worker.service
[Service]
Type=oneshot
WorkingDirectory=/opt/langfuse
EnvironmentFile=/opt/langfuse_data/.env
ExecStart=/usr/bin/pnpm --filter @langfuse/shared exec prisma db execute --schema=./prisma/schema.prisma --file=./scripts/cleanup.sql
ExecStart=/usr/bin/pnpm --filter @langfuse/shared exec prisma migrate deploy --schema=./prisma/schema.prisma
ExecStart=/bin/sh /opt/langfuse/packages/shared/clickhouse/scripts/up.sh
RemainAfterExit=yes
TimeoutStartSec=1800
UMask=0077
EOF
cat <<EOF >/etc/systemd/system/langfuse-web.service
[Unit]
Description=Langfuse Web
After=network.target langfuse-migrate.service
Requires=langfuse-migrate.service
[Service]
Type=simple
WorkingDirectory=/opt/langfuse
EnvironmentFile=/opt/langfuse_data/.env
Environment=HOSTNAME=0.0.0.0
Environment=PORT=3000
ExecStart=/usr/bin/node /opt/langfuse/web/.next/standalone/web/server.js
SuccessExitStatus=143
Restart=on-failure
RestartSec=5
UMask=0077
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/langfuse-worker.service
[Unit]
Description=Langfuse Worker
After=network.target langfuse-migrate.service
Requires=langfuse-migrate.service
[Service]
Type=simple
WorkingDirectory=/opt/langfuse
EnvironmentFile=/opt/langfuse_data/.env
Environment=HOSTNAME=127.0.0.1
Environment=PORT=3030
ExecStart=/usr/bin/node /opt/langfuse/worker/dist/index.js
Restart=on-failure
RestartSec=5
UMask=0077
[Install]
WantedBy=multi-user.target
EOF
systemctl restart redis-server clickhouse-server
systemctl enable -q --now langfuse-storage
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:9333/cluster/status
$STD /opt/seaweedfs/weed shell -master=127.0.0.1:9333 <<<"s3.bucket.create -name langfuse"
$STD curl --config - --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:8333/langfuse <<EOF
aws-sigv4 = "aws:amz:us-east-1:s3"
user = "langfuse:${S3_SECRET}"
EOF
systemctl enable -q --now langfuse-web langfuse-worker
$STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3000/api/public/ready
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3030/api/health
msg_ok "Created Services"
msg_info "Saving Credentials"
sed -i '/^LANGFUSE_INIT_/d' /opt/langfuse_data/.env
cat <<EOF >>~/langfuse.creds
Langfuse Admin
Email: ${var_admin_email}
Password: ${var_admin_pass}
Langfuse API Keys (project Default)
Public Key: ${PUBLIC_KEY}
Secret Key: ${SECRET_KEY}
EOF
chmod 600 ~/langfuse.creds
msg_ok "Saved Credentials"
motd_ssh
customize
cleanup_lxc
+1
View File
@@ -54,6 +54,7 @@ SITE_SETTINGS=$(find /opt/mealie/frontend -name "site-settings.vue" -path "*/adm
$STD sed -i "s|https://github.com/mealie-recipes/mealie/commit/|https://github.com/mealie-recipes/mealie/releases/tag/|g" "$SITE_SETTINGS"
$STD sed -i "s|value: data.buildId,|value: \"v${MEALIE_VERSION}\",|g" "$SITE_SETTINGS"
$STD sed -i "s|value: data.production ? i18n.t(\"about.production\") : i18n.t(\"about.development\"),|value: \"bare-metal\",|g" "$SITE_SETTINGS"
$STD sed -i "s|^__version__ = .*|__version__ = \"${MEALIE_VERSION}\"|" /opt/mealie/mealie/__init__.py
if [[ "${FRONTEND_PKG}" == "pnpm" ]]; then
$STD pnpm install --prefer-offline --frozen-lockfile
$STD pnpm generate
+1 -1
View File
@@ -13,7 +13,7 @@ setting_up_container
network_check
update_os
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
PG_VERSION="17" setup_postgresql
PG_DB_NAME="nocobase" PG_DB_USER="nocobase" PG_DB_CREDS_FILE="/dev/null" setup_postgresql_db
+150
View File
@@ -0,0 +1,150 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: a55uka (a55uka)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/TheSpaghettiDetective/obico-server
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 \
libmagic1 \
redis-server
systemctl enable -q --now redis-server
msg_ok "Installed Dependencies"
setup_ffmpeg
fetch_and_deploy_gh_branch "obico" "TheSpaghettiDetective/obico-server" "release" "/opt/obico"
PYTHON_VERSION="3.12" setup_uv
msg_info "Setting up Python Environments"
IMPORTLIB_METADATA_PIN=$(grep -oP 'importlib_metadata==\K[0-9.]+' /opt/obico/backend/Dockerfile.base) # tracked from upstream's Dockerfile.base
cd /opt/obico/backend
$STD uv venv --python 3.12 .venv
$STD uv pip install -p .venv/bin/python -r requirements.txt
$STD uv pip install -p .venv/bin/python "importlib_metadata==${IMPORTLIB_METADATA_PIN}"
cd /opt/obico/ml_api
$STD uv venv --python 3.12 .venv
$STD uv pip install -p .venv/bin/python -r requirements.txt onnxruntime opencv-python-headless
msg_ok "Set up Python Environments"
msg_info "Installing Moonraker Metadata Library"
MOONRAKER_SHA=$(grep -oP 'checkout \K[a-f0-9]{40}' /opt/obico/backend/Dockerfile.base) # pinned clone as in backend/Dockerfile.base, imported via PYTHONPATH
$STD git clone https://github.com/Arksine/moonraker.git /opt/moonraker
$STD git -C /opt/moonraker checkout "$MOONRAKER_SHA"
msg_ok "Installed Moonraker Metadata Library"
msg_info "Downloading Failure Detection Model"
mkdir -p /model_cache/ml_api/onnx
bash /opt/obico/ml_api/scripts/fetch_verified.sh "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.url)" /model_cache/ml_api/onnx/model-weights.onnx 50000000 "$(tr -d '\r' </opt/obico/ml_api/model/model-weights.onnx.sha256)" # upstream's checksum-verifying downloader, URL and sha256 from sidecar files
msg_ok "Downloaded Failure Detection Model"
msg_info "Configuring Obico"
DJANGO_SECRET_KEY=$(cd /opt/obico/backend && .venv/bin/python -c 'import secrets; print(secrets.token_urlsafe())' 2>/dev/null)
ML_API_TOKEN=$(random_password 32)
cat <<EOF >/opt/obico/.env
DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
REDIS_URL=redis://127.0.0.1:6379
DATABASE_URL=sqlite:////opt/obico/backend/db.sqlite3
INTERNAL_MEDIA_HOST=http://127.0.0.1:3334
ML_API_HOST=http://127.0.0.1:3333
ML_API_TOKEN=${ML_API_TOKEN}
OCTOPRINT_TUNNEL_PORT_RANGE=0-0
VERSION=$(cat ~/.obico)
PYTHONPATH=/opt/moonraker
EOF
chmod 600 /opt/obico/.env
msg_ok "Configured Obico"
msg_info "Initializing Database"
set -a
source /opt/obico/.env
set +a
cd /opt/obico/backend
$STD .venv/bin/python manage.py migrate --noinput
$STD .venv/bin/python manage.py collectstatic --noinput
$STD .venv/bin/python manage.py site --add "${LOCAL_IP}:3334"
msg_ok "Initialized Database"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/obico-ml-api.service
[Unit]
Description=Obico ML API
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/obico/ml_api
EnvironmentFile=/opt/obico/.env
ExecStart=/opt/obico/ml_api/.venv/bin/gunicorn --bind 0.0.0.0:3333 --workers 1 --timeout 120 wsgi # 0.0.0.0 for external clients (e.g. Bambuddy); ML_API_TOKEN gates everything but the health check
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/obico-web.service
[Unit]
Description=Obico Web Server
Wants=network-online.target obico-ml-api.service
After=network-online.target redis-server.service obico-ml-api.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/obico/backend
EnvironmentFile=/opt/obico/.env
ExecStart=/opt/obico/backend/.venv/bin/daphne -b 0.0.0.0 -p 3334 config.routing:application
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/obico-tasks.service
[Unit]
Description=Obico Celery Worker
Wants=network-online.target
After=network-online.target redis-server.service obico-web.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/obico/backend
EnvironmentFile=/opt/obico/.env
ExecStart=/opt/obico/backend/.venv/bin/celery -A config worker --beat -l info -c 2 -Q realtime,celery
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now obico-ml-api obico-web obico-tasks
msg_ok "Created Services"
msg_info "Waiting for Obico to start"
for ((i = 1; i <= 45; i++)); do
curl -fsS http://127.0.0.1:3334/hc/ >/dev/null 2>&1 && break
sleep 2
done
if ! curl -fsS http://127.0.0.1:3334/hc/ >/dev/null 2>&1; then
msg_error "Obico did not respond within 90s. Check 'journalctl -u obico-web -u obico-ml-api -u obico-tasks'"
exit 150
fi
msg_ok "Obico is running"
motd_ssh
customize
cleanup_lxc
+83
View File
@@ -0,0 +1,83 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/roundcube/roundcubemail
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 nginx rsync
msg_ok "Installed Dependencies"
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap" setup_php
fetch_and_deploy_gh_release "roundcube" "roundcube/roundcubemail" "prebuild" "latest" "/opt/roundcube" "roundcubemail-*-complete.tar.gz"
msg_info "Configuring Roundcube"
mkdir -p /opt/roundcube_data
cat <<EOF >/opt/roundcube/config/config.inc.php
<?php
\$config = [];
\$config['db_dsnw'] = 'sqlite:////opt/roundcube_data/roundcube.db?mode=0640';
\$config['imap_host'] = '${var_imap_host:-}';
\$config['smtp_host'] = '${var_smtp_host:-%h:587}';
\$config['smtp_user'] = '%u';
\$config['smtp_pass'] = '%p';
\$config['product_name'] = 'Roundcube Webmail';
\$config['des_key'] = '$(random_password 24)';
\$config['plugins'] = ['archive', 'zipdownload'];
\$config['skin'] = 'elastic';
EOF
rm -rf /opt/roundcube/installer
chown -R www-data:www-data /opt/roundcube /opt/roundcube_data
chmod 640 /opt/roundcube/config/config.inc.php
cd /opt/roundcube
$STD runuser -u www-data -- php bin/initdb.sh --dir=SQL --update
msg_ok "Configured Roundcube"
msg_info "Configuring Nginx"
PHP_SOCK=$(get_php_fpm_socket)
cat <<EOF >/etc/nginx/sites-available/roundcube
server {
listen 80;
listen [::]:80;
server_name _;
root /opt/roundcube/public_html;
index index.php;
client_max_body_size 128M;
location = /favicon.ico {
rewrite ^ /static.php/skins/elastic/images/favicon.ico last;
}
location / {
try_files \$uri \$uri/ /index.php\$is_args\$args;
}
location ~ \.php(/|\$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)\$;
set \$path_info \$fastcgi_path_info;
try_files \$fastcgi_script_name =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
fastcgi_param PATH_INFO \$path_info;
fastcgi_pass unix:${PHP_SOCK};
}
location ~ /\. {
deny all;
}
}
EOF
nginx_enable_site "roundcube"
msg_ok "Configured Nginx"
motd_ssh
customize
cleanup_lxc
+1
View File
@@ -15,6 +15,7 @@ update_os
msg_info "Installing Dependencies"
$STD apt install -y \
cron \
nginx \
sqlite3
setcap cap_net_raw+ep /bin/ping
+59
View File
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/warp-tech/warpgate
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "warpgate" "warp-tech/warpgate" "singlefile" "latest" "/opt/warpgate" "warpgate-v*-$(arch_resolve "x86_64" "arm64")-linux"
msg_info "Configuring Warpgate"
ADMIN_PASS="${var_admin_pass:-$(random_password)}"
mkdir -p /opt/warpgate_data
cat <<EOF >/opt/warpgate_data/.env
WARPGATE_ADMIN_USER=admin
WARPGATE_ADMIN_PASSWORD=${ADMIN_PASS}
EOF
chmod 600 /opt/warpgate_data/.env
WARPGATE_ADMIN_PASSWORD="$ADMIN_PASS" $STD /opt/warpgate/warpgate --config /opt/warpgate_data/warpgate.yaml unattended-setup \
--data-path /opt/warpgate_data \
--http-port 8888 \
--ssh-port 2222 \
--mysql-port 33306 \
--postgres-port 55432 \
--kubernetes-port 8443 \
--record-sessions
# A host kernel booted without IPv6 cannot bind [::]
[[ -d /proc/sys/net/ipv6 ]] || sed -i "s/'\[::\]:/'0.0.0.0:/" /opt/warpgate_data/warpgate.yaml
msg_ok "Configured Warpgate"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/warpgate.service
[Unit]
Description=Warpgate
After=network.target
StartLimitIntervalSec=0
[Service]
Type=notify
ExecStart=/opt/warpgate/warpgate --config /opt/warpgate_data/warpgate.yaml run
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now warpgate
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+1 -1
View File
@@ -181,7 +181,7 @@ fi
msg_info "Creating a AllStarLink VM"
qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \
-name $HN -tags community-script,debian${var_version},radio -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null
vm_alloc_efi_disk "$DISK0"
qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null
qm set $VMID \
-efidisk0 ${DISK0_REF}${FORMAT} \
+1 -1
View File
@@ -142,7 +142,7 @@ fi
msg_info "Creating an Alpine VM"
qm create "$VMID" -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores "$CORE_COUNT" -memory "$RAM_SIZE" \
-name "$HN" -tags community-script -net0 virtio,bridge="$BRG",macaddr="$MAC""$VLAN""$MTU" -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
pvesm alloc "$STORAGE" "$VMID" "$DISK0" 4M 1>&/dev/null
vm_alloc_efi_disk "$DISK0"
pvesm alloc "$STORAGE" "$VMID" "$DISK2" 4M 1>&/dev/null
qm importdisk "$VMID" "$WORK_FILE" "$STORAGE" -format "$DISK_IMPORT_FORMAT" 1>&/dev/null
qm set "$VMID" \
+6 -3
View File
@@ -395,14 +395,16 @@ qm create $VMID -agent 1${MACHINE} -tablet 0 -bios ovmf${CPU_TYPE} -cores $CORE_
-name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC,firewall=0,queues=$CORE_COUNT$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
vm_mark_created
# Retry pvesm alloc on transient zfs_request "got timeout" errors (#14127)
# Retry on transient zfs_request "got timeout" errors (#14127)
alloc_attempt=1
alloc_max=4
alloc_delay=5
while :; do
alloc_err=$(pvesm alloc $STORAGE $VMID $DISK0 4M 2>&1 >/dev/null) && break
# Not in $( ): vm_alloc_efi_disk sets DISK0_REF to the volume Proxmox made.
vm_alloc_efi_disk "$DISK0" 2>"/tmp/opnsense-efi-$$.err" && break
alloc_err="$(<"/tmp/opnsense-efi-$$.err")"
if [[ "$alloc_err" == *"got timeout"* && $alloc_attempt -lt $alloc_max ]]; then
echo -e "${YW}[WARN]${CL} pvesm alloc hit zfs timeout (attempt $alloc_attempt/$alloc_max), retrying in ${alloc_delay}s..."
echo -e "${YW}[WARN]${CL} EFI disk allocation hit zfs timeout (attempt $alloc_attempt/$alloc_max), retrying in ${alloc_delay}s..."
pvesm free "${DISK0_REF}" &>/dev/null || true
sleep "$alloc_delay"
alloc_attempt=$((alloc_attempt + 1))
@@ -412,6 +414,7 @@ while :; do
msg_error "Could not allocate the EFI disk on ${STORAGE}: ${alloc_err}"
exit 220
done
rm -f "/tmp/opnsense-efi-$$.err"
vm_import_disk "$VMID" "$FILE" "$STORAGE"
qm set $VMID \
-efidisk0 ${DISK0_REF}${FORMAT} \