mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-23 11:33:39 +01:00
Compare commits
17
Commits
No files matched your search
+16
-1
@@ -591,7 +591,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
- FreeScout [@MickLesk](https://github.com/MickLesk) ([#18930](https://github.com/community-scripts/ProxmoxVE/pull/18930))
|
||||
- Soulbeet [@MickLesk](https://github.com/MickLesk) ([#18944](https://github.com/community-scripts/ProxmoxVE/pull/18944))
|
||||
- Budibase [@MickLesk](https://github.com/MickLesk) ([#18968](https://github.com/community-scripts/ProxmoxVE/pull/18968))
|
||||
- JumpServer [@opastorello](https://github.com/opastorello) ([#18947](https://github.com/community-scripts/ProxmoxVE/pull/18947))
|
||||
- FreeScout [@MickLesk](https://github.com/MickLesk) ([#18930](https://github.com/community-scripts/ProxmoxVE/pull/18930))
|
||||
- Anubis [@opastorello](https://github.com/opastorello) ([#18926](https://github.com/community-scripts/ProxmoxVE/pull/18926))
|
||||
- OpenViking [@mfelipe](https://github.com/mfelipe) ([#18979](https://github.com/community-scripts/ProxmoxVE/pull/18979))
|
||||
- Oracle Linux [@MickLesk](https://github.com/MickLesk) ([#18945](https://github.com/community-scripts/ProxmoxVE/pull/18945))
|
||||
@@ -602,11 +605,23 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- DietPi: no console autologin, write the pre-login banner [@mews-se](https://github.com/mews-se) ([#18954](https://github.com/community-scripts/ProxmoxVE/pull/18954))
|
||||
- ideon: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18958](https://github.com/community-scripts/ProxmoxVE/pull/18958))
|
||||
- directus: bump Node.js from 22 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18987](https://github.com/community-scripts/ProxmoxVE/pull/18987))
|
||||
- portabase: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18988](https://github.com/community-scripts/ProxmoxVE/pull/18988))
|
||||
- t3code: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18959](https://github.com/community-scripts/ProxmoxVE/pull/18959))
|
||||
- airconnect: fix disabled service restart, static binary cleanup, and flag overrides [@cwmoriarty](https://github.com/cwmoriarty) ([#18955](https://github.com/community-scripts/ProxmoxVE/pull/18955))
|
||||
- bulwark: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18957](https://github.com/community-scripts/ProxmoxVE/pull/18957))
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- Authentik, DietPi, Orb: use the engine's host-side helpers instead of pct [@MickLesk](https://github.com/MickLesk) ([#18949](https://github.com/community-scripts/ProxmoxVE/pull/18949))
|
||||
- UrBackup Server, Paperless-ngx: no pct calls in the ct script [@MickLesk](https://github.com/MickLesk) ([#18950](https://github.com/community-scripts/ProxmoxVE/pull/18950))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- several scripts: run the install's setup_nodejs in the update of 86 scripts [@MickLesk](https://github.com/MickLesk) ([#18981](https://github.com/community-scripts/ProxmoxVE/pull/18981))
|
||||
|
||||
### 🧰 Tools
|
||||
|
||||
- wg-easy ([#18972](https://github.com/community-scripts/ProxmoxVE/pull/18972))
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
fi
|
||||
ensure_dependencies memcached libmemcached-tools
|
||||
if check_for_gh_release "adventurelog" "seanmorley15/adventurelog"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop adventurelog-backend
|
||||
systemctl stop adventurelog-frontend
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
|
||||
RELEASE="v0.27.3"
|
||||
if check_for_gh_release "affine_app" "toeverything/AFFiNE" "${RELEASE}" "each release is tested individually before the version is updated. Please do not open issues for this"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop affine-web affine-worker
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "airtrail" "johanohly/AirTrail"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop airtrail
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -36,6 +36,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "anythingllm" "Mintplex-Labs/anything-llm"; then
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop anythingllm anythingllm-collector
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
+3
-15
@@ -213,20 +213,8 @@ start
|
||||
build_container
|
||||
|
||||
msg_info "Attaching data storage volume"
|
||||
$STD pct stop "$CTID"
|
||||
if [ "${PROTECT_CT:-}" == "1" ] || [ "${PROTECT_CT:-}" == "yes" ]; then
|
||||
$STD pct set "$CTID" --protection 0
|
||||
$STD pct set "$CTID" -mp0 "${CONTAINER_STORAGE}":1,mp=/opt/authentik-data,backup=1
|
||||
$STD pct set "$CTID" --protection 1
|
||||
else
|
||||
$STD pct set "$CTID" -mp0 "${CONTAINER_STORAGE}":1,mp=/opt/authentik-data,backup=1
|
||||
fi
|
||||
$STD pct start "$CTID"
|
||||
for i in {1..10}; do
|
||||
pct status "$CTID" | grep -q "status: running" && break
|
||||
sleep 1
|
||||
done
|
||||
$STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
|
||||
ct_attach_volume 1 /opt/authentik-data
|
||||
$STD ct_exec bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
|
||||
cp /opt/authentik/tests/geoip/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \
|
||||
cp /opt/authentik/tests/geoip/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \
|
||||
cp -r /opt/authentik/blueprints /opt/authentik-data/; \
|
||||
@@ -235,7 +223,7 @@ $STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoi
|
||||
msg_ok "Attached data storage volume"
|
||||
|
||||
msg_info "Starting Services"
|
||||
pct exec "$CTID" -- systemctl enable -q --now authentik-server authentik-worker
|
||||
ct_exec systemctl enable -q --now authentik-server authentik-worker
|
||||
msg_ok "Started Services"
|
||||
|
||||
description
|
||||
|
||||
@@ -34,6 +34,8 @@ function update_script() {
|
||||
ensure_dependencies ffmpeg
|
||||
|
||||
if check_for_gh_release "bambuddy" "maziggy/bambuddy"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop bambuddy
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "baserow" "baserow/baserow"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop baserow-backend baserow-celery baserow-celery-beat baserow-celery-export baserow-frontend
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
|
||||
local changed=0
|
||||
if check_for_gh_release "borg-ui" "karanhudia/borg-ui"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
changed=1
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop borg-ui
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "budget-board" "teelur/budget-board"; then
|
||||
NODE_VERSION=25 setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop budget-board
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
#!/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/Budibase/budibase
|
||||
|
||||
APP="Budibase"
|
||||
var_tags="${var_tags:-low-code;apps;automation}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-6144}"
|
||||
var_disk="${var_disk:-16}"
|
||||
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}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/budibase ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
[[ -f ~/.silo ]] && mv ~/.silo ~/.silo_s3
|
||||
if check_for_gh_release "silo_s3" "pgsty/silo"; then
|
||||
msg_info "Stopping Budibase Silo"
|
||||
systemctl stop budibase-silo
|
||||
msg_ok "Stopped Budibase Silo"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
|
||||
|
||||
msg_info "Starting Budibase Silo"
|
||||
systemctl start budibase-silo
|
||||
msg_ok "Started Budibase Silo"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "budibase" "Budibase/budibase"; then
|
||||
msg_info "Stopping Budibase"
|
||||
systemctl stop budibase-server budibase-worker budibase-sqs
|
||||
msg_ok "Stopped Budibase"
|
||||
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "budibase" "Budibase/budibase" "tarball"
|
||||
|
||||
msg_info "Building Budibase"
|
||||
cd /opt/budibase
|
||||
$STD yarn install --frozen-lockfile
|
||||
CI=true $STD yarn build:apps
|
||||
$STD yarn cache clean
|
||||
sed -i "s/^BUDIBASE_VERSION=.*/BUDIBASE_VERSION=$(cat ~/.budibase)/" /opt/budibase_data/.env
|
||||
msg_ok "Built Budibase"
|
||||
|
||||
msg_info "Starting Budibase"
|
||||
systemctl start budibase-sqs budibase-worker budibase-server
|
||||
msg_ok "Started Budibase"
|
||||
msg_ok "Updated Budibase 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}"
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "bytestash" "jordan-dalby/ByteStash"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop bytestash-backend bytestash-frontend
|
||||
msg_ok "Services Stopped"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "checkmate" "bluewave-labs/Checkmate"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop checkmate-server checkmate-client nginx
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "colanode" "colanode/colanode"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop colanode-server
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "ConvertX" "C4illin/ConvertX"; then
|
||||
NODE_VERSION="22" NODE_MODULE="bun" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop convertx
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "convex" "get-convex/convex-backend"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Convex"
|
||||
systemctl stop convex
|
||||
msg_ok "Stopped Convex"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
# Updates to 2026.10.0 finished without infra.js; run them again so it gets written
|
||||
[[ -f /opt/cryptpad/config/infra.example.js && ! -f /opt/cryptpad/config/infra.js ]] && rm -f ~/.cryptpad
|
||||
if check_for_gh_release "cryptpad" "cryptpad/cryptpad"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop cryptpad
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "cyberchef" "gchq/CyberChef"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop caddy
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -48,6 +48,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "dawarich" "Freika/dawarich"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop dawarich-web dawarich-worker
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
+1
-5
@@ -44,11 +44,7 @@ build_container
|
||||
description
|
||||
|
||||
msg_info "Restarting ${APP} for DietPi's first boot"
|
||||
if command -v pct &>/dev/null; then
|
||||
pct reboot "$CTID"
|
||||
else
|
||||
incus restart "$CTID"
|
||||
fi
|
||||
ct_restart
|
||||
msg_ok "Restarted ${APP}"
|
||||
|
||||
msg_ok "Completed successfully!"
|
||||
|
||||
@@ -69,6 +69,8 @@ function update_script() {
|
||||
msg_ok "Built libvips"
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Updating Dependencies"
|
||||
RUBY_TARGET=$(grep -A1 '^RUBY VERSION' /opt/discourse/Gemfile.lock | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1)
|
||||
RUBY_VERSION="${RUBY_TARGET:-4.0.7}" RUBY_INSTALL_RAILS="false" setup_ruby
|
||||
|
||||
@@ -44,6 +44,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "docuseal" "docusealco/docuseal"; then
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop docuseal docuseal-sidekiq
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_tag "drawdb" "drawdb-io/drawdb"; then
|
||||
NODE_VERSION="20" setup_nodejs
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "drawdb" "drawdb-io/drawdb" "latest" "/opt/drawdb"
|
||||
|
||||
msg_info "Rebuilding Frontend"
|
||||
|
||||
@@ -35,6 +35,8 @@ function update_script() {
|
||||
SITE="$(ls /opt/frappe-bench/sites/*/site_config.json 2>/dev/null | head -1 | cut -d/ -f5)"
|
||||
[[ -z "$SITE" ]] && SITE="site1.local"
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
msg_info "Stopping ERPNext service"
|
||||
$STD supervisorctl stop all
|
||||
msg_ok "Stopped ERPNext service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "etherpad-lite" "ether/etherpad"; then
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop etherpad
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -34,6 +34,8 @@ function update_script() {
|
||||
ensure_dependencies build-essential ccache
|
||||
|
||||
if check_for_gh_release "firecrawl" "firecrawl/firecrawl"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@11.4.0" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop firecrawl firecrawl-playwright
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "fireshare" "ShaneIsrael/fireshare"; then
|
||||
NODE_VERSION=24 setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop fireshare
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "flame" "pawelmalak/flame"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop flame
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "foldergram" "foldergram/foldergram"; then
|
||||
NODE_VERSION=25 NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop foldergram
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "ghostfolio" "ghostfolio/ghostfolio"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop ghostfolio
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -35,6 +35,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "actions-runner" "actions/runner"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop actions-runner
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -34,6 +34,8 @@ function update_script() {
|
||||
ensure_dependencies git
|
||||
|
||||
if check_for_gh_release "grist" "gristlabs/grist-core"; then
|
||||
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop grist
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -78,6 +78,8 @@ EOF
|
||||
fi
|
||||
$STD runuser -l hermes -c 'systemctl --user daemon-reload && systemctl --user enable hermes-dashboard'
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Updating Hermes Agent"
|
||||
$STD setsid --wait runuser -l hermes -c '
|
||||
set -a; source /etc/default/hermes; set +a
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "homelable" "Pouzor/homelable"; then
|
||||
NODE_VERSION="20" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop homelable
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -34,6 +34,8 @@ function update_script() {
|
||||
$STD sudo -u postgres psql -c "ALTER ROLE ideon BYPASSRLS;"
|
||||
|
||||
if check_for_gh_release "ideon" "3xpyth0n/ideon"; then
|
||||
NODE_VERSION="26" setup_nodejs
|
||||
|
||||
msg_info "Stopping Ideon"
|
||||
systemctl stop ideon
|
||||
msg_ok "Stopped Ideon"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "ignis" "Nystik-gh/ignis"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop ignis
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -51,6 +51,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "immichframe" "immichFrame/ImmichFrame"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop immichframe
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -40,6 +40,8 @@ EOF
|
||||
fi
|
||||
|
||||
if check_for_gh_release "invoiceshelf" "InvoiceShelf/InvoiceShelf"; then
|
||||
NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop caddy
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -0,0 +1,166 @@
|
||||
#!/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: Nícolas Pastorello (opastorello)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://www.jumpserver.org/ | Github: https://github.com/jumpserver/jumpserver
|
||||
|
||||
APP="JumpServer"
|
||||
var_tags="${var_tags:-bastion-host;pam}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-8192}"
|
||||
var_disk="${var_disk:-50}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
#var_arm64="${var_arm64:-no}" # unset = ask the user; every component builds from source with arm64-capable toolchains, but the stack has only been run on amd64
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/jumpserver ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_tag "guacd" "apache/guacamole-server"; then
|
||||
msg_info "Stopping guacd"
|
||||
systemctl stop guacd
|
||||
msg_ok "Stopped guacd"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "guacd" "apache/guacamole-server"
|
||||
|
||||
msg_info "Building guacd"
|
||||
cd /opt/guacd
|
||||
$STD autoreconf -fi
|
||||
# FreeRDP 3.6+ deprecates APIs guacd still calls, which -Werror turns into build failures
|
||||
$STD ./configure --with-systemd-dir=/etc/systemd/system --disable-guacenc CFLAGS="-O2 -Wno-error=deprecated-declarations"
|
||||
$STD make -j"$(nproc)"
|
||||
$STD make install
|
||||
$STD ldconfig
|
||||
systemctl daemon-reload
|
||||
systemctl start guacd
|
||||
msg_ok "Built guacd"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "jumpserver" "jumpserver/jumpserver" "" "" "v5."; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop jumpserver koko
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
create_backup /opt/jumpserver/config.yml /opt/jumpserver/data /opt/koko/config.yml /opt/koko/data
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jumpserver" "jumpserver/jumpserver" "tarball" "latest" "" "" "v5."
|
||||
JMS_TAG="v$(<~/.jumpserver)"
|
||||
github_api_call "https://api.github.com/repos/jumpserver/jumpserver/contents/apps/accounts/clients?ref=${JMS_TAG}" /tmp/jms-clients.json
|
||||
fetch_and_deploy_from_url "https://github.com/jumpserver/pam-clients/archive/$(jq -r .sha /tmp/jms-clients.json).tar.gz" /opt/jumpserver/apps/accounts/clients
|
||||
rm -f /tmp/jms-clients.json
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "koko" "jumpserver/koko" "$JMS_TAG"
|
||||
|
||||
restore_backup
|
||||
|
||||
msg_info "Updating Python Environment"
|
||||
cd /opt/jumpserver
|
||||
$STD bash requirements/static_files.sh
|
||||
$STD uv venv --python 3.14
|
||||
$STD uv pip install -r pyproject.toml
|
||||
JMS_GALAXY_RETRIES=3
|
||||
until ANSIBLE_COLLECTIONS_PATHS="/opt/jumpserver/.venv/lib/python3.14/site-packages/ansible_collections" $STD .venv/bin/ansible-galaxy collection install -r requirements/collections.yml --force --ignore-certs; do
|
||||
JMS_GALAXY_RETRIES=$((JMS_GALAXY_RETRIES - 1))
|
||||
if ((JMS_GALAXY_RETRIES <= 0)); then
|
||||
msg_error "ansible-galaxy collection install failed after 3 attempts (Ansible Galaxy may be unreachable)"
|
||||
exit 1
|
||||
fi
|
||||
sleep 15
|
||||
done
|
||||
cd /opt/jumpserver/apps
|
||||
$STD ../.venv/bin/python3 manage.py compilemessages
|
||||
msg_ok "Updated Python Environment"
|
||||
|
||||
GHOSTTY_COMMIT=$(grep -oP 'libghostty-vt:ghostty-\K[0-9a-f]+' /opt/koko/Dockerfile-base)
|
||||
ZIG_VERSION=$(grep -oP 'libghostty-vt:ghostty-[0-9a-f]+-zig-\K[0-9.]+' /opt/koko/Dockerfile-base)
|
||||
USQL_VERSION=$(grep -oP 'ARG USQL_VERSION=\K\S+' /opt/koko/Dockerfile-base)
|
||||
K8S_BUNDLE_VERSION=$(grep -oP 'ARG K8S_BUNDLE_VERSION=\K\S+' /opt/koko/Dockerfile-base)
|
||||
GO_VERSION=$(grep -oP '^go \K\S+' /opt/koko/go.mod) setup_go
|
||||
|
||||
if [[ "$(cat ~/.libghostty-vt 2>/dev/null)" != "$GHOSTTY_COMMIT" ]]; then
|
||||
fetch_and_deploy_from_url "https://ziglang.org/download/${ZIG_VERSION}/zig-$(arch_resolve x86_64 aarch64)-linux-${ZIG_VERSION}.tar.xz" "/opt/zig"
|
||||
fetch_and_deploy_from_url "https://github.com/ghostty-org/ghostty/archive/${GHOSTTY_COMMIT}.tar.gz" "/opt/ghostty"
|
||||
|
||||
msg_info "Building libghostty-vt"
|
||||
rm -rf /opt/libghostty-vt
|
||||
cd /opt/ghostty
|
||||
$STD /opt/zig/zig build -Demit-lib-vt -Doptimize=ReleaseFast -Dcpu=baseline --prefix /opt/libghostty-vt
|
||||
rm -rf /opt/ghostty /opt/zig ~/.cache/zig
|
||||
echo "$GHOSTTY_COMMIT" >~/.libghostty-vt
|
||||
msg_ok "Built libghostty-vt"
|
||||
fi
|
||||
|
||||
msg_info "Building KoKo"
|
||||
cd /opt/koko
|
||||
export PKG_CONFIG_PATH=/opt/libghostty-vt/share/pkgconfig
|
||||
$STD make build VERSION="$JMS_TAG"
|
||||
mv build/koko koko
|
||||
rm -rf build
|
||||
msg_ok "Built KoKo"
|
||||
|
||||
fetch_and_deploy_gh_release "usql" "jumpserver-dev/usql" "prebuild" "$USQL_VERSION" "/opt/usql" "usql-*-linux-$(arch_resolve amd64 arm64).tar.gz"
|
||||
fetch_and_deploy_gh_release "k8s-bundle" "jumpserver-dev/k8s-bundle" "binary" "$K8S_BUNDLE_VERSION" "" "k8s-bundle_$(arch_resolve amd64 arm64).deb"
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
# Lina and Luna sources are deleted after each build, so their version
|
||||
# markers must not let the fetch be skipped
|
||||
rm -f ~/.lina ~/.luna
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "lina" "jumpserver/lina" "$JMS_TAG" "/opt/lina-src"
|
||||
|
||||
msg_info "Building Lina"
|
||||
cd /opt/lina-src
|
||||
$STD yarn install --immutable
|
||||
$STD yarn build:prod
|
||||
rm -rf /opt/lina
|
||||
mv lina /opt/lina
|
||||
rm -rf /opt/lina-src
|
||||
msg_ok "Built Lina"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "luna" "jumpserver/luna" "$JMS_TAG" "/opt/luna-src"
|
||||
|
||||
msg_info "Building Luna"
|
||||
cd /opt/luna-src
|
||||
# NUXT_TELEMETRY_DISABLED stops nuxt generate from waiting on a consent prompt
|
||||
export ELECTRON_SKIP_BINARY_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 NUXT_TELEMETRY_DISABLED=1
|
||||
$STD pnpm --filter jumpserver-web... install --frozen-lockfile --config.node-linker=isolated
|
||||
$STD pnpm --config.node-linker=isolated --filter jumpserver-web web:generate
|
||||
rm -rf /opt/luna
|
||||
mv .output/public /opt/luna
|
||||
rm -rf /opt/luna-src
|
||||
msg_ok "Built Luna"
|
||||
|
||||
msg_info "Starting Services"
|
||||
systemctl start jumpserver koko
|
||||
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}${CL}"
|
||||
echo -e "${INFO}${YW}SSH bastion (character protocols): ${CL}${BGN}ssh -p 2222 <user>@${IP}${CL}"
|
||||
echo -e "${INFO}${YW}Login credentials: ~/jumpserver.creds (inside the container)${CL}"
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "koel" "koel/koel"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop nginx php8.4-fpm
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "kutt" "thedevs-network/kutt"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping services"
|
||||
systemctl stop kutt
|
||||
msg_ok "Stopped services"
|
||||
|
||||
@@ -35,6 +35,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "langflow" "langflow-ai/langflow"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Langflow"
|
||||
systemctl stop langflow
|
||||
msg_ok "Stopped Langflow"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_tag "librechat" "danny-avila/LibreChat" "v"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop librechat rag-api
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "lingarr" "lingarr-translate/lingarr"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop lingarr
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -42,6 +42,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "linkding" "sissbruecker/linkding"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop nginx linkding linkding-tasks
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "lobehub" "lobehub/lobehub"; then
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop lobehub
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "localagi" "mudler/LocalAGI"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop localagi
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -30,6 +30,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "mafl" "hywax/mafl"; then
|
||||
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
|
||||
|
||||
msg_info "Stopping Mafl service"
|
||||
systemctl stop mafl
|
||||
msg_ok "Service stopped"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "mastodon" "mastodon/mastodon"; then
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop mastodon-web mastodon-sidekiq mastodon-streaming
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "matter-hub" "RiDDiX/home-assistant-matter-hub"; then
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm@^10" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop matter-hub
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "mediamanager" "maxdorninger/MediaManager"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop mediamanager
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -30,6 +30,8 @@ function update_script() {
|
||||
|
||||
if [[ -d /opt/meilisearch-ui ]]; then
|
||||
if check_for_gh_release "meilisearch-ui" "riccox/meilisearch-ui"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
|
||||
|
||||
msg_info "Stopping Meilisearch-UI"
|
||||
systemctl stop meilisearch-ui
|
||||
msg_ok "Stopped Meilisearch-UI"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "mini-qr" "lyqht/mini-qr"; then
|
||||
NODE_VERSION="20" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop caddy
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -30,6 +30,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "myspeed" "gnmyt/myspeed"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop myspeed
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "neko" "m1k1o/neko"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop neko
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "nightscout" "nightscout/cgm-remote-monitor"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop nightscout
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "nodebb" "NodeBB/NodeBB"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop nodebb
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "nodecast-tv" "technomancer702/nodecast-tv"; then
|
||||
NODE_VERSION="20" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop nodecast-tv
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
setup_meilisearch
|
||||
|
||||
if check_for_gh_release "openarchiver" "LogicLabs-OU/OpenArchiver"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop openarchiver
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -34,6 +34,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "openthread-br" "openthread/ot-br-posix"; then
|
||||
setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop otbr-web
|
||||
systemctl stop otbr-agent
|
||||
|
||||
@@ -45,4 +45,4 @@ description
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}To link the sensor to your orb account run:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}pct exec ${CTID} -- runuser -u orb -- orb link${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}$(ct_exec_hint runuser -u orb -- orb link)${CL}"
|
||||
@@ -30,6 +30,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "pairdrop" "schlagmichdoch/PairDrop"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop pairdrop
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -34,6 +34,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "paperclip-ai" "paperclipai/paperclip"; then
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop paperclip
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
+3
-4
@@ -228,10 +228,9 @@ EOF
|
||||
else
|
||||
BRIDGE_UPDATE=1
|
||||
msg_warn "You are about to migrate your Paperless-ngx installation to uv!"
|
||||
msg_custom "🔒" "It is strongly recommended to take a Proxmox snapshot first:"
|
||||
echo -e " 1. Stop the container: pct stop <CTID>"
|
||||
echo -e " 2. Create a snapshot: pct snapshot <CTID> pre-paperless-uv-migration"
|
||||
echo -e " 3. Start the container again\n"
|
||||
msg_custom "🔒" "It is strongly recommended to take a snapshot on the host first:"
|
||||
echo -e " Proxmox: pct snapshot <CTID> pre-paperless-uv-migration"
|
||||
echo -e " Incus: incus snapshot create <name> pre-paperless-uv-migration\n"
|
||||
|
||||
read -rp "Have you created a snapshot? [y/N]: " confirm
|
||||
if [[ ! "$confirm" =~ ^([yY]|[yY][eE][sS])$ ]]; then
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "passwordpusher" "pglombardo/PasswordPusher"; then
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop passwordpusher
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "peertube" "Chocobozzz/PeerTube"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@^10" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop peertube
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "pinchflat" "TheBadFella/Pinchflat-NGX"; then
|
||||
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop pinchflat
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "postiz" "gitroomhq/postiz-app"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop postiz-orchestrator postiz-frontend postiz-backend
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -54,6 +54,8 @@ EOF
|
||||
fi
|
||||
|
||||
if check_for_gh_release "readmeabook" "kikootwo/ReadMeABook"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop readmeabook
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "revealjs" "hakimel/reveal.js"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop revealjs
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "securo" "securo-finance/securo"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop securo securo-worker securo-beat
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "seelf" "YuukanOO/seelf"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop seelf
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
setup_mariadb
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Updating Shinobi"
|
||||
cd /opt/Shinobi
|
||||
$STD sh UPDATE.sh
|
||||
|
||||
@@ -33,6 +33,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "simplelogin" "simple-login/app"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop simplelogin-webapp simplelogin-email simplelogin-job
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -37,6 +37,8 @@ function update_script() {
|
||||
check_for_gh_release "snapotter" "snapotter-hq/SnapOtter" && UPDATE_AVAILABLE=true
|
||||
|
||||
if [[ "$NEEDS_V2_MIGRATION" == true || "$UPDATE_AVAILABLE" == true ]]; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop snapotter
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "solidtime" "solidtime-io/solidtime"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop caddy
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
#!/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/terry90/soulbeet
|
||||
|
||||
APP="Soulbeet"
|
||||
var_tags="${var_tags:-music;downloader;soulseek}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-3072}"
|
||||
var_disk="${var_disk:-10}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
#var_arm64="${var_arm64:-yes}" # built from source, dx and every toolchain ship arm64, but not yet run on arm64
|
||||
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/soulbeet ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "soulbeet" "terry90/soulbeet"; then
|
||||
msg_info "Stopping Soulbeet"
|
||||
systemctl stop soulbeet
|
||||
msg_ok "Stopped Soulbeet"
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
RUST_PROFILE="minimal" setup_rust
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "soulbeet" "terry90/soulbeet" "tarball"
|
||||
fetch_and_deploy_gh_release "dioxus-cli" "DioxusLabs/dioxus" "prebuild" "v$(awk -F'"' '/^name = "dioxus"$/{getline; print $2}' /opt/soulbeet/Cargo.lock)" "/usr/local/bin" "dx-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.tar.gz"
|
||||
|
||||
msg_info "Updating beets"
|
||||
UV_TOOL_BIN_DIR=/usr/local/bin $STD uv tool install --force --python 3.11 --constraints /opt/soulbeet/build/requirements-beets.txt beets --with requests --with musicbrainzngs
|
||||
msg_ok "Updated beets"
|
||||
|
||||
msg_info "Building Soulbeet (Patience)"
|
||||
cd /opt/soulbeet
|
||||
rm -f package-lock.json
|
||||
$STD npm install
|
||||
$STD npx @tailwindcss/cli -i ./web/assets/input.css -o ./web/assets/tailwind.css
|
||||
RUSTUP_AUTO_INSTALL=0 $STD dx bundle --package web --release
|
||||
mv /opt/soulbeet/target/dx/web/release/web /opt/soulbeet/server
|
||||
rm -rf /opt/soulbeet/target /opt/soulbeet/node_modules ~/.cargo/registry ~/.cargo/git ~/.npm
|
||||
msg_ok "Built Soulbeet"
|
||||
|
||||
msg_info "Starting Soulbeet"
|
||||
systemctl start soulbeet
|
||||
msg_ok "Started Soulbeet"
|
||||
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}:9765${CL}"
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "split-pro" "oss-apps/split-pro"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop split-pro
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -39,6 +39,8 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Updating Storybook"
|
||||
cd "$PROJECT_PATH"
|
||||
$STD npx storybook@latest upgrade --yes
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "suggestarr" "giuseppe99barchetta/SuggestArr"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop suggestarr
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "super-productivity" "super-productivity/super-productivity"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "super-productivity" "super-productivity/super-productivity" "tarball"
|
||||
|
||||
msg_info "Building Web App"
|
||||
|
||||
@@ -34,6 +34,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "tasmocompiler" "benzino77/tasmocompiler"; then
|
||||
NODE_VERSION="22" NODE_MODULE="yarn@latest" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop tasmocompiler
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -43,6 +43,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "teable" "teableio/teable"; then
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop teable
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "teslamate" "teslamate-org/teslamate"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop teslamate
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -37,6 +37,8 @@ function update_script() {
|
||||
fetch_and_deploy_gh_release "pandoc" "jgm/pandoc" "binary" "latest" "" "pandoc-*-$(arch_resolve).deb"
|
||||
|
||||
if check_for_gh_release "transmute" "transmute-app/transmute"; then
|
||||
NODE_VERSION="25" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop transmute
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -31,6 +31,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "trip" "itskovacs/TRIP"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop trip
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if [[ ! -f /etc/systemd/system/bgutil-provider.service ]]; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Adding BgUtil POT Provider"
|
||||
ensure_dependencies ffmpeg libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev pkg-config
|
||||
fetch_and_deploy_gh_release "bgutil-ytdlp-pot-provider" "Brainicism/bgutil-ytdlp-pot-provider" "tarball"
|
||||
@@ -58,6 +60,8 @@ EOF
|
||||
fi
|
||||
|
||||
if check_for_gh_release "tubearchivist" "tubearchivist/tubearchivist"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop bgutil-provider tubearchivist tubearchivist-celery tubearchivist-beat
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -40,6 +40,8 @@ function update_script() {
|
||||
ENABLE_GPU="yes" setup_hwaccel
|
||||
fi
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Updating ${APP} (Patience)"
|
||||
curl -fsSL https://unsloth.ai/install.sh -o /tmp/unsloth-install.sh
|
||||
export UNSLOTH_STUDIO_HOME=/opt/unsloth
|
||||
|
||||
@@ -15,6 +15,7 @@ var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-0}"
|
||||
var_fuse="${var_fuse:-yes}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
@@ -40,9 +41,6 @@ start
|
||||
build_container
|
||||
description
|
||||
|
||||
pct set "$CTID" -features fuse=1,nesting=1
|
||||
pct reboot "$CTID"
|
||||
|
||||
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 IP:${CL}"
|
||||
|
||||
@@ -175,6 +175,8 @@ EOF
|
||||
fi
|
||||
|
||||
if check_for_gh_release "wanderer" "open-wanderer/wanderer"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping service"
|
||||
systemctl stop wanderer-web
|
||||
msg_ok "Stopped service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "wizarr" "wizarrrr/wizarr"; then
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop wizarr
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "xyops" "pixlcore/xyops"; then
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop xyops
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "yopass" "jhaals/yopass"; then
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop yopass
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -32,6 +32,8 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "your-spotify" "Yooooomi/your_spotify"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@^10,serve" setup_nodejs
|
||||
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop your-spotify your-spotify-web
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
@@ -35,6 +35,8 @@ function update_script() {
|
||||
systemctl stop zerotier-one
|
||||
msg_ok "Stopping Service"
|
||||
|
||||
NODE_VERSION="20" setup_nodejs
|
||||
|
||||
msg_info "Updating Zerotier-One"
|
||||
apt_update_safe
|
||||
$STD apt upgrade -y
|
||||
|
||||
@@ -0,0 +1,380 @@
|
||||
#!/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/Budibase/budibase
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
build-essential \
|
||||
python3 \
|
||||
nginx \
|
||||
redis-server
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
JAVA_VERSION="8" setup_java
|
||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||
|
||||
msg_info "Installing Apache CouchDB"
|
||||
COUCHDB_PASS=$(random_password)
|
||||
COUCHDB_COOKIE=$(openssl rand -hex 32)
|
||||
debconf-set-selections <<EOF
|
||||
couchdb couchdb/mode select standalone
|
||||
couchdb couchdb/bindaddress string 127.0.0.1
|
||||
couchdb couchdb/cookie string ${COUCHDB_COOKIE}
|
||||
couchdb couchdb/adminpass password ${COUCHDB_PASS}
|
||||
couchdb couchdb/adminpass_again password ${COUCHDB_PASS}
|
||||
EOF
|
||||
setup_deb822_repo \
|
||||
"couchdb" \
|
||||
"https://couchdb.apache.org/repo/keys.asc" \
|
||||
"https://apache.jfrog.io/artifactory/couchdb-deb" \
|
||||
"$(get_os_info codename)" \
|
||||
"main"
|
||||
DEBIAN_FRONTEND=noninteractive $STD apt install -y couchdb
|
||||
mkdir -p /opt/budibase_data/{couch/dbs,couch/views,search,sqs,minio}
|
||||
chown -R couchdb:couchdb /opt/budibase_data/couch
|
||||
# CouchDB writes the hashed admin password to the last ini file, so this one sorts before 10-admins.ini to have it replace the plaintext there
|
||||
cat <<EOF >/opt/couchdb/etc/local.d/00-budibase.ini
|
||||
[couchdb]
|
||||
database_dir = /opt/budibase_data/couch/dbs
|
||||
view_index_dir = /opt/budibase_data/couch/views
|
||||
|
||||
[chttpd_auth]
|
||||
timeout = 7200
|
||||
EOF
|
||||
chown couchdb:couchdb /opt/couchdb/etc/local.d/00-budibase.ini
|
||||
systemctl restart couchdb
|
||||
for _ in {1..30}; do
|
||||
curl -fs http://127.0.0.1:5984/_up >/dev/null && break
|
||||
sleep 2
|
||||
done
|
||||
$STD curl -fsS -X PUT -u "admin:${COUCHDB_PASS}" http://127.0.0.1:5984/_users
|
||||
$STD curl -fsS -X PUT -u "admin:${COUCHDB_PASS}" http://127.0.0.1:5984/_replicator
|
||||
msg_ok "Installed Apache CouchDB"
|
||||
|
||||
# Budibase's database image pins Clouseau 2.25.0 on Java 8; 3.x needs Java 21 and a different config format
|
||||
fetch_and_deploy_gh_release "clouseau" "cloudant-labs/clouseau" "prebuild" "2.25.0" "/opt/clouseau" "clouseau-2.25.0-dist.zip"
|
||||
fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
|
||||
fetch_and_deploy_gh_release "budibase" "Budibase/budibase" "tarball"
|
||||
|
||||
msg_info "Building Budibase"
|
||||
cd /opt/budibase
|
||||
$STD yarn install --frozen-lockfile
|
||||
CI=true $STD yarn build:apps
|
||||
$STD yarn cache clean
|
||||
msg_ok "Built Budibase"
|
||||
|
||||
msg_info "Configuring Budibase"
|
||||
REDIS_PASS=$(random_password)
|
||||
sed -i "s/^# requirepass .*/requirepass ${REDIS_PASS}/" /etc/redis/redis.conf
|
||||
systemctl restart redis-server
|
||||
cat <<EOF >/opt/clouseau/clouseau.ini
|
||||
[clouseau]
|
||||
name=clouseau@127.0.0.1
|
||||
cookie=${COUCHDB_COOKIE}
|
||||
dir=/opt/budibase_data/search
|
||||
max_indexes_open=500
|
||||
EOF
|
||||
cat <<EOF >/opt/budibase_data/.env
|
||||
NODE_ENV=production
|
||||
NODE_OPTIONS=--no-node-snapshot
|
||||
SELF_HOSTED=1
|
||||
BUDIBASE_ENVIRONMENT=PRODUCTION
|
||||
BUDIBASE_VERSION=$(cat ~/.budibase)
|
||||
SERVER_TOP_LEVEL_PATH=/opt/budibase/packages/server
|
||||
APP_PORT=4001
|
||||
WORKER_PORT=4002
|
||||
CLUSTER_PORT=80
|
||||
APPS_URL=http://127.0.0.1:4001
|
||||
WORKER_URL=http://127.0.0.1:4002
|
||||
ACCOUNT_PORTAL_URL=https://account.budibase.app
|
||||
COUCH_DB_URL=http://admin:${COUCHDB_PASS}@127.0.0.1:5984
|
||||
COUCH_DB_SQL_URL=http://127.0.0.1:4984
|
||||
REDIS_URL=127.0.0.1:6379
|
||||
REDIS_PASSWORD=${REDIS_PASS}
|
||||
MINIO_URL=http://127.0.0.1:9000
|
||||
MINIO_ACCESS_KEY=$(random_password 20)
|
||||
MINIO_SECRET_KEY=$(random_password 40)
|
||||
MINIO_BROWSER=off
|
||||
JWT_SECRET=$(openssl rand -hex 32)
|
||||
INTERNAL_API_KEY=$(openssl rand -hex 32)
|
||||
API_ENCRYPTION_KEY=$(openssl rand -hex 32)
|
||||
ENCRYPTION_KEY=$(openssl rand -hex 32)
|
||||
EOF
|
||||
chmod 600 /opt/budibase_data/.env
|
||||
msg_ok "Configured Budibase"
|
||||
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/systemd/system/budibase-clouseau.service
|
||||
[Unit]
|
||||
Description=Budibase Clouseau Search
|
||||
After=couchdb.service
|
||||
Requires=couchdb.service
|
||||
PartOf=couchdb.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/clouseau
|
||||
ExecStart=/usr/bin/java -server -Xmx1G -Dsun.net.inetaddr.ttl=30 -Dsun.net.inetaddr.negative.ttl=30 -XX:+ExitOnOutOfMemoryError -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -classpath /opt/clouseau/* com.cloudant.clouseau.Main /opt/clouseau/clouseau.ini
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/budibase-sqs.service
|
||||
[Unit]
|
||||
Description=Budibase SQS
|
||||
After=couchdb.service
|
||||
Requires=couchdb.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/budibase/hosting/couchdb/sqs/$(arch_resolve "x86" "arm")
|
||||
ExecStart=/opt/budibase/hosting/couchdb/sqs/$(arch_resolve "x86" "arm")/sqs --server http://127.0.0.1:5984 --data-dir /opt/budibase_data/sqs --bind-address=127.0.0.1 --max-threads=20
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/budibase-silo.service
|
||||
[Unit]
|
||||
Description=Budibase Silo Object Storage
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=/opt/budibase_data/.env
|
||||
# ~/.silo is the version file of the Silo release, so Silo's config directory moves out of /root
|
||||
Environment=HOME=/opt/budibase_data
|
||||
ExecStart=/opt/silo/silo server /opt/budibase_data/minio --address 127.0.0.1:9000
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/budibase-server.service
|
||||
[Unit]
|
||||
Description=Budibase App Server
|
||||
After=network.target couchdb.service redis-server.service budibase-sqs.service budibase-silo.service
|
||||
Requires=couchdb.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/budibase/packages/server
|
||||
EnvironmentFile=/opt/budibase_data/.env
|
||||
ExecStart=/usr/bin/node --enable-source-maps /opt/budibase/packages/server/dist/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/budibase-worker.service
|
||||
[Unit]
|
||||
Description=Budibase Worker
|
||||
After=network.target couchdb.service redis-server.service budibase-silo.service
|
||||
Requires=couchdb.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/budibase/packages/worker
|
||||
EnvironmentFile=/opt/budibase_data/.env
|
||||
ExecStart=/usr/bin/node --enable-source-maps /opt/budibase/packages/worker/dist/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now budibase-clouseau budibase-sqs budibase-silo budibase-worker budibase-server
|
||||
msg_ok "Created Services"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
cat <<'EOF' >/etc/nginx/sites-available/budibase
|
||||
limit_req_zone $binary_remote_addr zone=budibase_api:10m rate=50r/s;
|
||||
limit_req_zone $binary_remote_addr zone=budibase_webhooks:10m rate=10r/s;
|
||||
limit_req_status 429;
|
||||
|
||||
map $http_upgrade $budibase_connection_upgrade {
|
||||
default "upgrade";
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
client_max_body_size 1000m;
|
||||
ignore_invalid_headers off;
|
||||
proxy_buffering off;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
location = /health {
|
||||
proxy_pass http://127.0.0.1:4002/health;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /app {
|
||||
proxy_buffering on;
|
||||
proxy_buffer_size 16k;
|
||||
proxy_buffers 8 32k;
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
}
|
||||
|
||||
location /embed {
|
||||
rewrite /embed/(.*) /app/$1 break;
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
proxy_redirect off;
|
||||
proxy_set_header x-budibase-embed "true";
|
||||
add_header x-budibase-embed "true";
|
||||
}
|
||||
|
||||
location = / {
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
}
|
||||
|
||||
location = /builder/apps {
|
||||
return 301 $scheme://$http_host/apps;
|
||||
}
|
||||
|
||||
location ~ ^/builder/portal/apps(/.*)?$ {
|
||||
return 301 $scheme://$http_host/builder/portal/workspaces$1;
|
||||
}
|
||||
|
||||
location ~ ^/builder/app(/.*)?$ {
|
||||
return 301 $scheme://$http_host/builder/workspace$1;
|
||||
}
|
||||
|
||||
location ~ ^/(builder|app_) {
|
||||
proxy_buffering on;
|
||||
proxy_buffer_size 16k;
|
||||
proxy_buffers 16 32k;
|
||||
proxy_busy_buffers_size 64k;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection $budibase_connection_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
}
|
||||
|
||||
location ~ ^/api/(system|admin|global)/ {
|
||||
proxy_buffering on;
|
||||
proxy_buffer_size 16k;
|
||||
proxy_buffers 4 32k;
|
||||
proxy_pass http://127.0.0.1:4002;
|
||||
}
|
||||
|
||||
location /worker/ {
|
||||
proxy_pass http://127.0.0.1:4002;
|
||||
rewrite ^/worker/(.*)$ /$1 break;
|
||||
}
|
||||
|
||||
location /api/backups/ {
|
||||
limit_req zone=budibase_api burst=20 nodelay;
|
||||
proxy_read_timeout 1800s;
|
||||
proxy_connect_timeout 1800s;
|
||||
proxy_send_timeout 1800s;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection $budibase_connection_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
}
|
||||
|
||||
location /api/webhooks/ {
|
||||
limit_req zone=budibase_webhooks burst=200 nodelay;
|
||||
proxy_read_timeout 120s;
|
||||
proxy_connect_timeout 120s;
|
||||
proxy_send_timeout 120s;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection $budibase_connection_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
limit_req zone=budibase_api burst=20 nodelay;
|
||||
proxy_read_timeout 120s;
|
||||
proxy_connect_timeout 120s;
|
||||
proxy_send_timeout 120s;
|
||||
proxy_buffering on;
|
||||
proxy_buffer_size 16k;
|
||||
proxy_buffers 8 32k;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection $budibase_connection_upgrade;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
}
|
||||
|
||||
location /db/ {
|
||||
proxy_pass http://127.0.0.1:5984;
|
||||
rewrite ^/db/(.*)$ /$1 break;
|
||||
}
|
||||
|
||||
location /socket/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_pass http://127.0.0.1:4001;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_connect_timeout 300;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
chunked_transfer_encoding off;
|
||||
proxy_pass http://127.0.0.1:9000;
|
||||
}
|
||||
|
||||
# Budibase signs object URLs for the host "minio-service", so the object store must see that host
|
||||
location /files/signed/ {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host minio-service;
|
||||
proxy_connect_timeout 300;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
chunked_transfer_encoding off;
|
||||
proxy_pass http://127.0.0.1:9000;
|
||||
rewrite ^/files/signed/(.*)$ /$1 break;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
|
||||
}
|
||||
EOF
|
||||
nginx_enable_site "budibase"
|
||||
msg_ok "Configured Nginx"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -41,14 +41,14 @@ fi
|
||||
rm -f /etc/apt/sources.list.d/debian.sources
|
||||
rm -f /etc/sysctl.d/97-dietpi.conf
|
||||
rm -f /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service
|
||||
# DietPi's installer skips the pre-login banner on its master branch (temporary guard since 17 Nov 2026), so write it here:
|
||||
# it shows the default credentials above the login prompt until the first run setup has finished
|
||||
$STD /boot/dietpi/func/dietpi-banner issue
|
||||
msg_ok "Configured DietPi"
|
||||
|
||||
customize
|
||||
# Autologin on tty1 only: DietPi's first run setup runs on the first console that logs in, and the Proxmox UI attaches to tty1
|
||||
rm -f /etc/systemd/system/console-getty.service.d/override.conf
|
||||
if [[ -f /etc/systemd/system/container-getty@.service.d/override.conf ]]; then
|
||||
mkdir -p /etc/systemd/system/container-getty@1.service.d
|
||||
mv /etc/systemd/system/container-getty@.service.d/override.conf /etc/systemd/system/container-getty@1.service.d/
|
||||
rmdir /etc/systemd/system/container-getty@.service.d
|
||||
fi
|
||||
# No console autologin: DietPi's first run setup starts on the console the user logs in on, not by itself on tty1,
|
||||
# and since DietPi v10.9 the login prompt shows the default credentials until the first run setup has finished
|
||||
rm -f /etc/systemd/system/console-getty.service.d/override.conf /etc/systemd/system/container-getty@.service.d/override.conf
|
||||
rmdir /etc/systemd/system/console-getty.service.d /etc/systemd/system/container-getty@.service.d 2>/dev/null || true
|
||||
cleanup_lxc
|
||||
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y build-essential
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
NODE_VERSION="26" setup_nodejs
|
||||
PG_VERSION="18" setup_postgresql
|
||||
PG_DB_NAME="ideon" PG_DB_USER="ideon" setup_postgresql_db
|
||||
$STD sudo -u postgres psql -c "ALTER ROLE ideon BYPASSRLS;"
|
||||
|
||||
@@ -0,0 +1,344 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Nícolas Pastorello (opastorello)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://www.jumpserver.org/ | Github: https://github.com/jumpserver/jumpserver
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
build-essential \
|
||||
autoconf \
|
||||
automake \
|
||||
libtool \
|
||||
pkg-config \
|
||||
xz-utils \
|
||||
default-libmysqlclient-dev \
|
||||
freetds-dev \
|
||||
gettext \
|
||||
locales \
|
||||
libkrb5-dev \
|
||||
libldap2-dev \
|
||||
libsasl2-dev \
|
||||
libx11-dev \
|
||||
openssh-client \
|
||||
sshpass \
|
||||
bubblewrap \
|
||||
libcairo2-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libpng-dev \
|
||||
uuid-dev \
|
||||
libavcodec-dev \
|
||||
libavformat-dev \
|
||||
libavutil-dev \
|
||||
libswscale-dev \
|
||||
freerdp3-dev \
|
||||
libwinpr3-dev \
|
||||
libpango1.0-dev \
|
||||
libssh2-1-dev \
|
||||
libtelnet-dev \
|
||||
libvncserver-dev \
|
||||
libwebsockets-dev \
|
||||
libpulse-dev \
|
||||
libssl-dev \
|
||||
libvorbis-dev \
|
||||
libwebp-dev \
|
||||
redis-server \
|
||||
nginx
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="16" setup_postgresql
|
||||
PG_DB_NAME="jumpserver" PG_DB_USER="jumpserver" setup_postgresql_db
|
||||
|
||||
msg_info "Starting Redis"
|
||||
systemctl enable -q --now redis-server
|
||||
msg_ok "Started Redis"
|
||||
|
||||
PYTHON_VERSION="3.14" setup_uv
|
||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||
|
||||
fetch_and_deploy_gh_tag "guacd" "apache/guacamole-server"
|
||||
|
||||
msg_info "Building guacd"
|
||||
cd /opt/guacd
|
||||
$STD autoreconf -fi
|
||||
# FreeRDP 3.6+ deprecates APIs guacd still calls, which -Werror turns into build failures
|
||||
$STD ./configure --with-systemd-dir=/etc/systemd/system --disable-guacenc CFLAGS="-O2 -Wno-error=deprecated-declarations"
|
||||
$STD make -j"$(nproc)"
|
||||
$STD make install
|
||||
$STD ldconfig
|
||||
# guacd binds "localhost" (::1 here) by default, but KoKo dials 127.0.0.1
|
||||
mkdir -p /etc/guacamole
|
||||
cat <<EOF >/etc/guacamole/guacd.conf
|
||||
[server]
|
||||
bind_host = 127.0.0.1
|
||||
bind_port = 4822
|
||||
EOF
|
||||
systemctl enable -q --now guacd
|
||||
msg_ok "Built guacd"
|
||||
|
||||
fetch_and_deploy_gh_release "jumpserver" "jumpserver/jumpserver" "tarball" "latest" "" "" "v5."
|
||||
# KoKo, Lina and Luna must match the core release exactly
|
||||
JMS_TAG="v$(<~/.jumpserver)"
|
||||
# The PAM clients are a git submodule, which the release tarball leaves empty
|
||||
github_api_call "https://api.github.com/repos/jumpserver/jumpserver/contents/apps/accounts/clients?ref=${JMS_TAG}" /tmp/jms-clients.json
|
||||
fetch_and_deploy_from_url "https://github.com/jumpserver/pam-clients/archive/$(jq -r .sha /tmp/jms-clients.json).tar.gz" /opt/jumpserver/apps/accounts/clients
|
||||
rm -f /tmp/jms-clients.json
|
||||
|
||||
msg_info "Configuring JumpServer Core"
|
||||
JMS_BOOTSTRAP_TOKEN=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)
|
||||
cat <<EOF >/opt/jumpserver/config.yml
|
||||
SECRET_KEY: $(openssl rand -base64 64 | tr -dc 'a-zA-Z0-9' | cut -c1-49)
|
||||
BOOTSTRAP_TOKEN: ${JMS_BOOTSTRAP_TOKEN}
|
||||
DB_ENGINE: postgresql
|
||||
DB_HOST: 127.0.0.1
|
||||
DB_PORT: 5432
|
||||
DB_USER: jumpserver
|
||||
DB_PASSWORD: ${PG_DB_PASS}
|
||||
DB_NAME: jumpserver
|
||||
REDIS_HOST: 127.0.0.1
|
||||
REDIS_PORT: 6379
|
||||
HTTP_BIND_HOST: 0.0.0.0
|
||||
HTTP_LISTEN_PORT: 8080
|
||||
WS_LISTEN_PORT: 8070
|
||||
LOG_LEVEL: ERROR
|
||||
EOF
|
||||
cd /opt/jumpserver
|
||||
$STD bash requirements/static_files.sh
|
||||
$STD uv venv --python 3.14
|
||||
$STD uv pip install -r pyproject.toml
|
||||
JMS_GALAXY_RETRIES=3
|
||||
until ANSIBLE_COLLECTIONS_PATHS="/opt/jumpserver/.venv/lib/python3.14/site-packages/ansible_collections" $STD .venv/bin/ansible-galaxy collection install -r requirements/collections.yml --force --ignore-certs; do
|
||||
JMS_GALAXY_RETRIES=$((JMS_GALAXY_RETRIES - 1))
|
||||
if ((JMS_GALAXY_RETRIES <= 0)); then
|
||||
msg_error "ansible-galaxy collection install failed after 3 attempts (Ansible Galaxy may be unreachable)"
|
||||
exit 1
|
||||
fi
|
||||
sleep 15
|
||||
done
|
||||
cd /opt/jumpserver/apps
|
||||
$STD ../.venv/bin/python3 manage.py compilemessages
|
||||
msg_ok "Configured JumpServer Core"
|
||||
|
||||
msg_info "Creating Core Service"
|
||||
cat <<EOF >/etc/systemd/system/jumpserver.service
|
||||
[Unit]
|
||||
Description=JumpServer Core Service
|
||||
After=network.target postgresql.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/jumpserver
|
||||
Environment=ANSIBLE_COLLECTIONS_PATHS=/opt/jumpserver/.venv/lib/python3.14/site-packages/ansible_collections
|
||||
Environment=PATH=/opt/jumpserver/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
ExecStart=/opt/jumpserver/.venv/bin/python3 /opt/jumpserver/jms start all
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q jumpserver
|
||||
msg_ok "Created Core Service"
|
||||
|
||||
fetch_and_deploy_gh_tag "koko" "jumpserver/koko" "$JMS_TAG"
|
||||
|
||||
# Toolchain pins come from KoKo's own build files so they follow each release
|
||||
GHOSTTY_COMMIT=$(grep -oP 'libghostty-vt:ghostty-\K[0-9a-f]+' /opt/koko/Dockerfile-base)
|
||||
ZIG_VERSION=$(grep -oP 'libghostty-vt:ghostty-[0-9a-f]+-zig-\K[0-9.]+' /opt/koko/Dockerfile-base)
|
||||
USQL_VERSION=$(grep -oP 'ARG USQL_VERSION=\K\S+' /opt/koko/Dockerfile-base)
|
||||
K8S_BUNDLE_VERSION=$(grep -oP 'ARG K8S_BUNDLE_VERSION=\K\S+' /opt/koko/Dockerfile-base)
|
||||
GO_VERSION=$(grep -oP '^go \K\S+' /opt/koko/go.mod) setup_go
|
||||
|
||||
fetch_and_deploy_from_url "https://ziglang.org/download/${ZIG_VERSION}/zig-$(arch_resolve x86_64 aarch64)-linux-${ZIG_VERSION}.tar.xz" "/opt/zig"
|
||||
fetch_and_deploy_from_url "https://github.com/ghostty-org/ghostty/archive/${GHOSTTY_COMMIT}.tar.gz" "/opt/ghostty"
|
||||
|
||||
msg_info "Building libghostty-vt"
|
||||
cd /opt/ghostty
|
||||
$STD /opt/zig/zig build -Demit-lib-vt -Doptimize=ReleaseFast -Dcpu=baseline --prefix /opt/libghostty-vt
|
||||
rm -rf /opt/ghostty /opt/zig ~/.cache/zig
|
||||
echo "$GHOSTTY_COMMIT" >~/.libghostty-vt
|
||||
msg_ok "Built libghostty-vt"
|
||||
|
||||
msg_info "Building KoKo"
|
||||
cd /opt/koko
|
||||
export PKG_CONFIG_PATH=/opt/libghostty-vt/share/pkgconfig
|
||||
$STD make build VERSION="$JMS_TAG"
|
||||
mv build/koko koko
|
||||
rm -rf build
|
||||
msg_ok "Built KoKo"
|
||||
|
||||
fetch_and_deploy_gh_release "usql" "jumpserver-dev/usql" "prebuild" "$USQL_VERSION" "/opt/usql" "usql-*-linux-$(arch_resolve amd64 arm64).tar.gz"
|
||||
ln -sf /opt/usql/usql /usr/local/bin/usql
|
||||
fetch_and_deploy_gh_release "k8s-bundle" "jumpserver-dev/k8s-bundle" "binary" "$K8S_BUNDLE_VERSION" "" "k8s-bundle_$(arch_resolve amd64 arm64).deb"
|
||||
|
||||
msg_info "Configuring KoKo"
|
||||
cat <<EOF >/opt/koko/config.yml
|
||||
CORE_HOST: http://127.0.0.1:8080
|
||||
BOOTSTRAP_TOKEN: ${JMS_BOOTSTRAP_TOKEN}
|
||||
REDIS_HOST: 127.0.0.1
|
||||
REDIS_PORT: 6379
|
||||
GUA_HOST: 127.0.0.1
|
||||
GUA_PORT: 4822
|
||||
WEB_PROXY_RECORDING_ENABLED: false
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/koko.service
|
||||
[Unit]
|
||||
Description=JumpServer KoKo Service
|
||||
After=network.target guacd.service jumpserver.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/koko
|
||||
ExecStart=/opt/koko/koko
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q koko
|
||||
msg_ok "Configured KoKo"
|
||||
|
||||
fetch_and_deploy_gh_tag "lina" "jumpserver/lina" "$JMS_TAG" "/opt/lina-src"
|
||||
|
||||
msg_info "Building Lina"
|
||||
cd /opt/lina-src
|
||||
$STD yarn install --immutable
|
||||
$STD yarn build:prod
|
||||
rm -rf /opt/lina
|
||||
mv lina /opt/lina
|
||||
rm -rf /opt/lina-src
|
||||
msg_ok "Built Lina"
|
||||
|
||||
fetch_and_deploy_gh_tag "luna" "jumpserver/luna" "$JMS_TAG" "/opt/luna-src"
|
||||
|
||||
msg_info "Building Luna"
|
||||
cd /opt/luna-src
|
||||
# NUXT_TELEMETRY_DISABLED stops nuxt generate from waiting on a consent prompt
|
||||
export ELECTRON_SKIP_BINARY_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 HUSKY=0 NUXT_TELEMETRY_DISABLED=1
|
||||
$STD pnpm --filter jumpserver-web... install --frozen-lockfile --config.node-linker=isolated
|
||||
$STD pnpm --config.node-linker=isolated --filter jumpserver-web web:generate
|
||||
rm -rf /opt/luna
|
||||
mv .output/public /opt/luna
|
||||
rm -rf /opt/luna-src
|
||||
msg_ok "Built Luna"
|
||||
|
||||
msg_info "Initializing Database"
|
||||
cd /opt/jumpserver
|
||||
$STD .venv/bin/python3 jms upgrade_db
|
||||
msg_ok "Initialized Database"
|
||||
|
||||
msg_info "Securing Admin Account"
|
||||
# Booting Django here (outside upgrade_db) also generates TERMINAL_HOST_KEY,
|
||||
# so the core service loads it on start instead of caching an empty one
|
||||
JMS_ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-16)
|
||||
cd /opt/jumpserver
|
||||
PYTHONPATH=/opt/jumpserver/apps DJANGO_SETTINGS_MODULE=jumpserver.settings $STD .venv/bin/python3 -c "
|
||||
import django
|
||||
django.setup()
|
||||
from users.models import User
|
||||
u = User.objects.get(username='admin')
|
||||
u.set_password('${JMS_ADMIN_PASS}')
|
||||
u.need_update_password = False
|
||||
u.save()
|
||||
"
|
||||
cat <<EOF >>~/jumpserver.creds
|
||||
JumpServer Admin Credentials
|
||||
Username: admin
|
||||
Password: ${JMS_ADMIN_PASS}
|
||||
EOF
|
||||
msg_ok "Secured Admin Account"
|
||||
|
||||
msg_info "Starting Services"
|
||||
# The core only accepts terminal registration for 5 minutes after it starts,
|
||||
# so KoKo has to come up right behind it instead of after the long builds
|
||||
systemctl start jumpserver
|
||||
for _ in $(seq 1 90); do
|
||||
curl -fsS -o /dev/null http://127.0.0.1:8080/api/health/ 2>/dev/null && break
|
||||
sleep 5
|
||||
done
|
||||
systemctl start koko
|
||||
msg_ok "Started Services"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
cat <<EOF >/etc/nginx/sites-available/jumpserver
|
||||
server {
|
||||
listen 80 default_server;
|
||||
client_max_body_size 4096m;
|
||||
|
||||
location / {
|
||||
rewrite ^/(.*)\$ /ui/\$1 last;
|
||||
}
|
||||
|
||||
location /ui/ {
|
||||
try_files \$uri / /index.html;
|
||||
alias /opt/lina/;
|
||||
}
|
||||
|
||||
location /luna/ {
|
||||
try_files \$uri / /index.html;
|
||||
alias /opt/luna/;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
root /opt/jumpserver/data/;
|
||||
}
|
||||
|
||||
location /private-media/ {
|
||||
internal;
|
||||
alias /opt/jumpserver/data/media/;
|
||||
}
|
||||
|
||||
location /ws/ {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade \$http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host \$host;
|
||||
proxy_set_header X-Forwarded-For \$remote_addr;
|
||||
}
|
||||
|
||||
location ~ ^/(core|api|media)/ {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_set_header Host \$http_host;
|
||||
proxy_set_header X-Forwarded-For \$remote_addr;
|
||||
proxy_ignore_client_abort on;
|
||||
proxy_connect_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
proxy_read_timeout 600;
|
||||
send_timeout 6000;
|
||||
}
|
||||
|
||||
location /koko/ {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_request_buffering off;
|
||||
proxy_set_header Upgrade \$http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host \$host;
|
||||
proxy_set_header X-Forwarded-For \$remote_addr;
|
||||
proxy_ignore_client_abort on;
|
||||
proxy_connect_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
proxy_read_timeout 600;
|
||||
send_timeout 6000;
|
||||
}
|
||||
}
|
||||
EOF
|
||||
nginx_enable_site "jumpserver"
|
||||
msg_ok "Configured Nginx"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -0,0 +1,104 @@
|
||||
#!/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/terry90/soulbeet
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
build-essential \
|
||||
pkg-config \
|
||||
libssl-dev
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
PYTHON_VERSION="3.11" setup_uv
|
||||
RUST_PROFILE="minimal" setup_rust
|
||||
fetch_and_deploy_gh_release "soulbeet" "terry90/soulbeet" "tarball"
|
||||
# dx has to match the dioxus version Soulbeet is locked to
|
||||
fetch_and_deploy_gh_release "dioxus-cli" "DioxusLabs/dioxus" "prebuild" "v$(awk -F'"' '/^name = "dioxus"$/{getline; print $2}' /opt/soulbeet/Cargo.lock)" "/usr/local/bin" "dx-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.tar.gz"
|
||||
|
||||
msg_info "Installing beets"
|
||||
UV_TOOL_BIN_DIR=/usr/local/bin $STD uv tool install --python 3.11 --constraints /opt/soulbeet/build/requirements-beets.txt beets --with requests --with musicbrainzngs
|
||||
msg_ok "Installed beets"
|
||||
|
||||
msg_info "Building Soulbeet (Patience)"
|
||||
cd /opt/soulbeet
|
||||
# Upstream drops the lockfile too: it pins Tailwind's native binding for the platform it was generated on
|
||||
rm -f package-lock.json
|
||||
$STD npm install
|
||||
$STD npx @tailwindcss/cli -i ./web/assets/input.css -o ./web/assets/tailwind.css
|
||||
# dx probes cargo +nightly only to size its progress bar; rustup would download a whole nightly toolchain for that
|
||||
RUSTUP_AUTO_INSTALL=0 $STD dx bundle --package web --release
|
||||
mv /opt/soulbeet/target/dx/web/release/web /opt/soulbeet/server
|
||||
rm -rf /opt/soulbeet/target /opt/soulbeet/node_modules ~/.cargo/registry ~/.cargo/git ~/.npm
|
||||
msg_ok "Built Soulbeet"
|
||||
|
||||
msg_info "Configuring Soulbeet"
|
||||
mkdir -p /opt/soulbeet_data/{downloads,music,beets-plugins}
|
||||
cat <<EOF >/opt/soulbeet_data/.env
|
||||
DATABASE_URL=sqlite:/opt/soulbeet_data/soulbeet.db
|
||||
SECRET_KEY=$(openssl rand -hex 32)
|
||||
DOWNLOAD_PATH=/opt/soulbeet_data/downloads
|
||||
BEETS_CONFIG=/opt/soulbeet_data/beets_config.yaml
|
||||
IP=0.0.0.0
|
||||
PORT=9765
|
||||
#NAVIDROME_URL=http://<navidrome-ip>:4533
|
||||
#BEETS_ALBUM_MODE=true
|
||||
EOF
|
||||
chmod 600 /opt/soulbeet_data/.env
|
||||
cat <<'EOF' >/opt/soulbeet_data/beets_config.yaml
|
||||
plugins: musicbrainz
|
||||
pluginpath: /opt/soulbeet_data/beets-plugins
|
||||
directory: /opt/soulbeet_data/music
|
||||
import:
|
||||
copy: no
|
||||
move: yes
|
||||
resume: no
|
||||
duplicate_action: remove
|
||||
paths:
|
||||
default: $albumartist/$album%aunique{}/$track $title
|
||||
singleton: $albumartist/$album%aunique{}/$title
|
||||
match:
|
||||
strong_rec_thresh: 0.10
|
||||
max_rec:
|
||||
missing_tracks: low
|
||||
musicbrainz:
|
||||
searchlimit: 20
|
||||
extra_tags: [catalognum, country, label, media, year]
|
||||
EOF
|
||||
msg_ok "Configured Soulbeet"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/soulbeet.service
|
||||
[Unit]
|
||||
Description=Soulbeet
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/soulbeet/server
|
||||
EnvironmentFile=/opt/soulbeet_data/.env
|
||||
ExecStart=/opt/soulbeet/server/server
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now soulbeet
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in new issue
Block a user