mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-28 00:32:55 +02:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a597a5453 | |||
| d1bb6b37ce | |||
| bf0c6c4503 | |||
| 895cc7fdcf | |||
| 7cee1cb96a | |||
| b3739cebde | |||
| af497cdd38 | |||
| ba8375f4d8 | |||
| cfaed33534 | |||
| fccd4d568f | |||
| 4804aaedf7 | |||
| e7e6456cfa | |||
| 631f56b29e | |||
| a5a77dcd99 | |||
| 2b2e026928 |
Generated
+17
@@ -0,0 +1,17 @@
|
||||
# Keeps the GitHub Actions referenced in .github/workflows up to date.
|
||||
# https://docs.github.com/code-security/dependabot/working-with-dependabot/dependabot-options-reference
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "monday"
|
||||
open-pull-requests-limit: 5
|
||||
labels:
|
||||
- "dependencies"
|
||||
# One PR per week for all action bumps instead of one PR per action.
|
||||
groups:
|
||||
github-actions:
|
||||
patterns:
|
||||
- "*"
|
||||
+3
-3
@@ -20,21 +20,21 @@ jobs:
|
||||
steps:
|
||||
- name: Generate a token
|
||||
id: generate-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ vars.APP_ID }}
|
||||
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Generate a token for PR approval and merge
|
||||
id: generate-token-merge
|
||||
uses: actions/create-github-app-token@v1
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ secrets.APP_ID_APPROVE_AND_MERGE }}
|
||||
private-key: ${{ secrets.APP_KEY_APPROVE_AND_MERGE }}
|
||||
|
||||
# Step 1: Checkout repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v7
|
||||
|
||||
# Step 2: Disable file mode changes detection
|
||||
- name: Disable file mode changes
|
||||
|
||||
Generated
+2
-2
@@ -16,13 +16,13 @@ jobs:
|
||||
CONFIG_PATH: .github/autolabeler-config.json
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install minimatch
|
||||
|
||||
- name: Label PR based on file changes, title, and PR template
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs').promises;
|
||||
|
||||
Generated
+4
-4
@@ -19,25 +19,25 @@ jobs:
|
||||
steps:
|
||||
- name: Generate a token
|
||||
id: generate-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ vars.APP_ID }}
|
||||
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Generate a token for PR approval and merge
|
||||
id: generate-token-merge
|
||||
uses: actions/create-github-app-token@v1
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ secrets.APP_ID_APPROVE_AND_MERGE }}
|
||||
private-key: ${{ secrets.APP_KEY_APPROVE_AND_MERGE }}
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Archive old changelog entries
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs').promises;
|
||||
|
||||
Generated
+5
-5
@@ -19,20 +19,20 @@ jobs:
|
||||
steps:
|
||||
- name: Generate a token
|
||||
id: generate-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ vars.APP_ID }}
|
||||
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Generate a token for PR approval and merge
|
||||
id: generate-token-merge
|
||||
uses: actions/create-github-app-token@v1
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ secrets.APP_ID_APPROVE_AND_MERGE }}
|
||||
private-key: ${{ secrets.APP_KEY_APPROVE_AND_MERGE }}
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
|
||||
- name: Get categorized pull requests
|
||||
id: get-categorized-prs
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
async function main() {
|
||||
@@ -213,7 +213,7 @@ jobs:
|
||||
return await main();
|
||||
|
||||
- name: Update CHANGELOG.md
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs').promises;
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
ref: main
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Close PR if it does not follow the PR template
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const pr = context.payload.pull_request;
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Close PR if unauthorized new script submission
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const pr = context.payload.pull_request;
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Auto-close if tteck script detected
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const issue = context.payload.issue;
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout target repo (merge commit)
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
repository: community-scripts/ProxmoxVE
|
||||
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Delete branches of merged PRs
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const owner = context.repo.owner;
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ jobs:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
Generated
+1
-1
@@ -13,7 +13,7 @@ jobs:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Clean CHANGELOG (remove HTML header)
|
||||
run: sed -n '/^## /,$p' CHANGELOG.md > changelog_cleaned.md
|
||||
|
||||
Generated
+1
-1
@@ -14,7 +14,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Lock old issues and PRs
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const daysBeforeLock = 7;
|
||||
|
||||
Generated
+1
-1
@@ -26,7 +26,7 @@ jobs:
|
||||
steps:
|
||||
- name: Mint GitHub App token (bot identity)
|
||||
id: app-token
|
||||
uses: actions/create-github-app-token@v1
|
||||
uses: actions/create-github-app-token@v3
|
||||
with:
|
||||
app-id: ${{ secrets.PB_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.PB_BOT_APP_PRIVATE_KEY }}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ jobs:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
Generated
+1
-1
@@ -16,7 +16,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Handle stale PRs
|
||||
uses: actions/github-script@v7
|
||||
uses: actions/github-script@v9
|
||||
with:
|
||||
script: |
|
||||
const now = new Date();
|
||||
|
||||
+3
-3
@@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Create redirect page
|
||||
run: |
|
||||
@@ -33,9 +33,9 @@ jobs:
|
||||
</html>
|
||||
EOF
|
||||
|
||||
- uses: actions/upload-pages-artifact@v3
|
||||
- uses: actions/upload-pages-artifact@v5
|
||||
with:
|
||||
path: site
|
||||
|
||||
- name: Deploy
|
||||
uses: actions/deploy-pages@v4
|
||||
uses: actions/deploy-pages@v5
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ jobs:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
+13
-1
@@ -512,7 +512,9 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
- Discourse ([#16024](https://github.com/community-scripts/ProxmoxVE/pull/16024))
|
||||
- Unpackerr ([#16034](https://github.com/community-scripts/ProxmoxVE/pull/16034))
|
||||
- CookCLI ([#16028](https://github.com/community-scripts/ProxmoxVE/pull/16028))
|
||||
- Discourse ([#16024](https://github.com/community-scripts/ProxmoxVE/pull/16024))
|
||||
- Mastodon ([#16029](https://github.com/community-scripts/ProxmoxVE/pull/16029))
|
||||
- Docspell ([#16033](https://github.com/community-scripts/ProxmoxVE/pull/16033))
|
||||
- Poznote ([#16030](https://github.com/community-scripts/ProxmoxVE/pull/16030))
|
||||
@@ -524,14 +526,24 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Update MeiliSearch command for database upgrade [@Isnubi](https://github.com/Isnubi) ([#16081](https://github.com/community-scripts/ProxmoxVE/pull/16081))
|
||||
- Mylar3 & Medusa: use trixie non-free for unrar, not bookworm [@angusmaul](https://github.com/angusmaul) ([#16072](https://github.com/community-scripts/ProxmoxVE/pull/16072))
|
||||
- Vikunja: pin install/update to v2.3.0 due upstream issues [@MickLesk](https://github.com/MickLesk) ([#16059](https://github.com/community-scripts/ProxmoxVE/pull/16059))
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- OpenThread-BR: Add runtime configuration options [@tomfrenzel](https://github.com/tomfrenzel) ([#16038](https://github.com/community-scripts/ProxmoxVE/pull/16038))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- core: Handle LXC upgrade prompt cancellation [@MickLesk](https://github.com/MickLesk) ([#16058](https://github.com/community-scripts/ProxmoxVE/pull/16058))
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- core: fix OS version fallback when the host catalog lacks the requested version & harden template validation [@MickLesk](https://github.com/MickLesk) ([#16068](https://github.com/community-scripts/ProxmoxVE/pull/16068))
|
||||
|
||||
## 2026-07-26
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/cooklang/cookcli
|
||||
|
||||
APP="CookCLI"
|
||||
var_tags="${var_tags:-recipes;cooking;food}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-512}"
|
||||
var_disk="${var_disk:-8}"
|
||||
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 /opt/cookcli/cook ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "cook" "cooklang/cookcli"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop cookcli
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
create_backup /opt/cookcli/recipes
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cook" "cooklang/cookcli" "prebuild" "latest" "/opt/cookcli" "cook-$(arch_resolve "x86_64-unknown-linux-gnu" "aarch64-unknown-linux-musl").tar.gz"
|
||||
chmod +x /opt/cookcli/cook
|
||||
|
||||
restore_backup
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start cookcli
|
||||
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}:9080${CL}"
|
||||
@@ -0,0 +1,6 @@
|
||||
______ __ ________ ____
|
||||
/ ____/___ ____ / /__/ ____/ / / _/
|
||||
/ / / __ \/ __ \/ //_/ / / / / /
|
||||
/ /___/ /_/ / /_/ / ,< / /___/ /____/ /
|
||||
\____/\____/\____/_/|_|\____/_____/___/
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
__ __ __
|
||||
/ / / /___ ____ ____ ______/ /_____ __________
|
||||
/ / / / __ \/ __ \/ __ `/ ___/ //_/ _ \/ ___/ ___/
|
||||
/ /_/ / / / / /_/ / /_/ / /__/ ,< / __/ / / /
|
||||
\____/_/ /_/ .___/\__,_/\___/_/|_|\___/_/ /_/
|
||||
/_/
|
||||
@@ -70,7 +70,9 @@ function update_script() {
|
||||
-DOTBR_BACKBONE_ROUTER=ON \
|
||||
-DOTBR_SYSTEMD_UNIT_DIR=/etc/systemd/system \
|
||||
-DOT_FIREWALL=ON \
|
||||
-DOTBR_NAT64=ON \
|
||||
-DOT_POSIX_NAT64_CIDR="192.168.255.0/24" \
|
||||
-DOTBR_DNS_UPSTREAM_QUERY=ON \
|
||||
..
|
||||
$STD ninja
|
||||
$STD ninja install
|
||||
@@ -101,6 +103,31 @@ EOF
|
||||
mv /etc/default/otbr-agent.bak /etc/default/otbr-agent
|
||||
msg_ok "Restored Configuration"
|
||||
|
||||
if [[ ! -f /etc/systemd/system/otbr-agent.service.d/10-otbr-post-start.conf ]]; then
|
||||
msg_info "Configuring OpenThread Border Router post-start service"
|
||||
cat <<'EOF' >/usr/local/bin/otbr-post-start.sh
|
||||
#!/bin/sh
|
||||
|
||||
# OpenThread Border Router post-start script
|
||||
# Run custom commands for runtime configuration options
|
||||
|
||||
# Wait for the otbr-agent service to be initialized
|
||||
#sleep 3
|
||||
|
||||
# Configure routing and translation features
|
||||
#ot-ctl nat64 enable
|
||||
#ot-ctl dns server upstream enable
|
||||
EOF
|
||||
chmod +x /usr/local/bin/otbr-post-start.sh
|
||||
mkdir -p /etc/systemd/system/otbr-agent.service.d
|
||||
cat <<'EOF' >/etc/systemd/system/otbr-agent.service.d/10-otbr-post-start.conf
|
||||
[Service]
|
||||
ExecStartPost=/usr/local/bin/otbr-post-start.sh
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
msg_ok "Configured OpenThread Border Router post-start service"
|
||||
fi
|
||||
|
||||
msg_info "Starting Services"
|
||||
systemctl start otbr-agent
|
||||
systemctl start otbr-web
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://unpackerr.zip/
|
||||
|
||||
APP="Unpackerr"
|
||||
var_tags="${var_tags:-downloads;arr;automation;extraction}"
|
||||
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/unpackerr/unpackerr.conf ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "unpackerr" "Unpackerr/unpackerr"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop unpackerr
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
create_backup /etc/unpackerr/unpackerr.conf
|
||||
|
||||
DPKG_FORCE_CONFOLD=1 fetch_and_deploy_gh_release "unpackerr" "Unpackerr/unpackerr" "binary" "latest" "/opt/unpackerr" "unpackerr_*_$(arch_resolve).deb"
|
||||
|
||||
restore_backup
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start unpackerr
|
||||
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}Configure integrations in:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}/etc/unpackerr/unpackerr.conf${CL}"
|
||||
@@ -0,0 +1,47 @@
|
||||
#!/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/cooklang/cookcli
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_gh_release "cook" "cooklang/cookcli" "prebuild" "latest" "/opt/cookcli" "cook-$(arch_resolve "x86_64-unknown-linux-gnu" "aarch64-unknown-linux-musl").tar.gz"
|
||||
|
||||
msg_info "Configuring CookCLI"
|
||||
chmod +x /opt/cookcli/cook
|
||||
mkdir -p /opt/cookcli/recipes
|
||||
cd /opt/cookcli/recipes
|
||||
$STD /opt/cookcli/cook seed
|
||||
msg_ok "Configured CookCLI"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/cookcli.service
|
||||
[Unit]
|
||||
Description=CookCLI Recipe Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/cookcli/recipes
|
||||
ExecStart=/opt/cookcli/cook server --host 0.0.0.0 --port 9080
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now cookcli
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -20,7 +20,7 @@ $STD apt install -y \
|
||||
mediainfo
|
||||
|
||||
cat <<EOF >/etc/apt/sources.list.d/non-free.list
|
||||
deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||
deb https://deb.debian.org/debian trixie main contrib non-free non-free-firmware
|
||||
EOF
|
||||
$STD apt update
|
||||
$STD apt install -y unrar
|
||||
|
||||
@@ -17,8 +17,9 @@ msg_info "Installing Dependencies"
|
||||
cat <<EOF >/etc/apt/sources.list.d/non-free.sources
|
||||
Types: deb
|
||||
URIs: http://deb.debian.org/debian
|
||||
Suites: bookworm
|
||||
Suites: trixie
|
||||
Components: non-free non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
EOF
|
||||
$STD apt update
|
||||
$STD apt install -y unrar
|
||||
|
||||
@@ -66,7 +66,9 @@ $STD cmake -GNinja \
|
||||
-DOTBR_BACKBONE_ROUTER=ON \
|
||||
-DOTBR_SYSTEMD_UNIT_DIR=/etc/systemd/system \
|
||||
-DOT_FIREWALL=ON \
|
||||
-DOTBR_NAT64=ON \
|
||||
-DOT_POSIX_NAT64_CIDR="192.168.255.0/24" \
|
||||
-DOTBR_DNS_UPSTREAM_QUERY=ON \
|
||||
..
|
||||
$STD ninja
|
||||
$STD ninja install
|
||||
@@ -103,6 +105,25 @@ EOF
|
||||
cat <<'EOF' >/etc/default/otbr-web
|
||||
OTBR_WEB_OPTS="-I wpan0 -a 0.0.0.0 -p 80"
|
||||
EOF
|
||||
cat <<'EOF' >/usr/local/bin/otbr-post-start.sh
|
||||
#!/bin/sh
|
||||
|
||||
# OpenThread Border Router post-start script
|
||||
# Run custom commands for runtime configuration options
|
||||
|
||||
# Wait for the otbr-agent service to be initialized
|
||||
#sleep 3
|
||||
|
||||
# Configure routing and translation features
|
||||
#ot-ctl nat64 enable
|
||||
#ot-ctl dns server upstream enable
|
||||
EOF
|
||||
chmod +x /usr/local/bin/otbr-post-start.sh
|
||||
mkdir -p /etc/systemd/system/otbr-agent.service.d
|
||||
cat <<'EOF' >/etc/systemd/system/otbr-agent.service.d/10-otbr-post-start.conf
|
||||
[Service]
|
||||
ExecStartPost=/usr/local/bin/otbr-post-start.sh
|
||||
EOF
|
||||
systemctl enable -q dbus rsyslog otbr-agent otbr-web
|
||||
systemctl enable -q bind9 2>/dev/null || systemctl enable -q named 2>/dev/null || true
|
||||
systemctl start -q dbus rsyslog bind9
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/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://unpackerr.zip/
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_gh_release "unpackerr" "Unpackerr/unpackerr" "binary" "latest" "/opt/unpackerr" "unpackerr_*_$(arch_resolve).deb"
|
||||
|
||||
msg_info "Configuring Unpackerr"
|
||||
mkdir -p /etc/unpackerr
|
||||
cat <<EOF >/etc/unpackerr/unpackerr.conf
|
||||
debug = false
|
||||
quiet = false
|
||||
activity = false
|
||||
interval = "2m"
|
||||
parallel = 1
|
||||
file_mode = "0644"
|
||||
dir_mode = "0755"
|
||||
|
||||
[webserver]
|
||||
metrics = false
|
||||
listen_addr = "0.0.0.0:5656"
|
||||
|
||||
[folders]
|
||||
interval = "0s"
|
||||
EOF
|
||||
chmod 640 /etc/unpackerr/unpackerr.conf
|
||||
msg_ok "Configured Unpackerr"
|
||||
|
||||
msg_info "Creating Service"
|
||||
systemctl enable -q --now unpackerr
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -62,7 +62,7 @@ cat <<EOF >/opt/wanderer/start.sh
|
||||
|
||||
trap "kill 0" EXIT
|
||||
|
||||
cd /opt/wanderer/source/search && meilisearch --experimental-dumpless-upgrade --master-key \$MEILI_MASTER_KEY &
|
||||
cd /opt/wanderer/source/search && meilisearch --upgrade-db --master-key \$MEILI_MASTER_KEY &
|
||||
sleep 1
|
||||
cd /opt/wanderer/source/db && ./pocketbase serve --http=\$PB_URL --dir=\$PB_DB_LOCATION &
|
||||
cd /opt/wanderer/source/web && node build &
|
||||
|
||||
+2
-2
@@ -7039,11 +7039,11 @@ setup_meilisearch() {
|
||||
fi
|
||||
|
||||
if [[ "$NEEDS_MIGRATION" == "true" ]]; then
|
||||
# One-time in-place migration via --experimental-dumpless-upgrade.
|
||||
# One-time in-place migration via --experimental-dumpless-upgrade (replaced with --upgrade-db)
|
||||
# Meilisearch migrates the on-disk DB during this startup; subsequent
|
||||
# normal (systemd) starts run without the flag.
|
||||
msg_info "Migrating data in place (dumpless upgrade ${CURRENT_VERSION} → ${NEW_VERSION})"
|
||||
/usr/bin/meilisearch --config-file-path /etc/meilisearch.toml --experimental-dumpless-upgrade >/dev/null 2>&1 &
|
||||
/usr/bin/meilisearch --config-file-path /etc/meilisearch.toml --upgrade-db >/dev/null 2>&1 &
|
||||
local MEILI_PID=$!
|
||||
|
||||
local MAX_WAIT=300
|
||||
|
||||
Reference in New Issue
Block a user