mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-28 16:34:21 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b23ddf9194 |
No files matched your search
+1
-27
@@ -589,44 +589,18 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
## 2026-11-28
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
- DokuWiki [@MickLesk](https://github.com/MickLesk) ([#19138](https://github.com/community-scripts/ProxmoxVE/pull/19138))
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Baikal: let composer install the twig version Baikal pins [@MickLesk](https://github.com/MickLesk) ([#19147](https://github.com/community-scripts/ProxmoxVE/pull/19147))
|
||||
- Warracker: fill in the nginx settings the upstream entrypoint sets [@MickLesk](https://github.com/MickLesk) ([#19146](https://github.com/community-scripts/ProxmoxVE/pull/19146))
|
||||
- TREK: give the build a 3 GB heap [@MickLesk](https://github.com/MickLesk) ([#19148](https://github.com/community-scripts/ProxmoxVE/pull/19148))
|
||||
- warracker: bump Python from 3.12 to 3.15 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19112](https://github.com/community-scripts/ProxmoxVE/pull/19112))
|
||||
- Pin install Python version in ct update scripts [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#19114](https://github.com/community-scripts/ProxmoxVE/pull/19114))
|
||||
- Set up install PHP version in ct update scripts [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#19115](https://github.com/community-scripts/ProxmoxVE/pull/19115))
|
||||
- Pelican Panel: leave the PHP version change to setup_php [@MickLesk](https://github.com/MickLesk) ([#19134](https://github.com/community-scripts/ProxmoxVE/pull/19134))
|
||||
- FreshRSS: add missing PHP extensions through setup_php [@MickLesk](https://github.com/MickLesk) ([#19135](https://github.com/community-scripts/ProxmoxVE/pull/19135))
|
||||
- Garage: use published stable releases for install and update [@mormied22](https://github.com/mormied22) ([#19084](https://github.com/community-scripts/ProxmoxVE/pull/19084))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- several scripts: exit 64 when a required setting is missing [@MickLesk](https://github.com/MickLesk) ([#19153](https://github.com/community-scripts/ProxmoxVE/pull/19153))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- Leave a legacy version file to the app it belongs to [@MickLesk](https://github.com/MickLesk) ([core#317](https://github.com/community-scripts/core/pull/317))
|
||||
- incus: draw the banner when the header cache belongs to another user [@MickLesk](https://github.com/MickLesk) ([core#318](https://github.com/community-scripts/core/pull/318))
|
||||
- Incus: Report Incus VM runs to telemetry [@MickLesk](https://github.com/MickLesk) ([core#319](https://github.com/community-scripts/core/pull/319))
|
||||
- PHP: Keep Sury from pulling a second PHP in, and read the version from packages [@MickLesk](https://github.com/MickLesk) ([core#316](https://github.com/community-scripts/core/pull/316))
|
||||
- PHP: Keep Sury from pulling a second PHP in, and read the version from packages [@MickLesk](https://github.com/MickLesk) ([core#316](https://github.com/community-scripts/core/pull/316))
|
||||
- Give PVE containers from linuxcontainers.org images the Proxmox templates Base set [@MickLesk](https://github.com/MickLesk) ([core#315](https://github.com/community-scripts/core/pull/315))
|
||||
- PHP: keep modules, pools and settings when setup_php changes the PHP version [@MickLesk](https://github.com/MickLesk) ([core#314](https://github.com/community-scripts/core/pull/314))
|
||||
|
||||
### 🧰 Tools
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Host tools: report the containers' real exit code and what failed [@MickLesk](https://github.com/MickLesk) ([#19152](https://github.com/community-scripts/ProxmoxVE/pull/19152))
|
||||
- PVE Post Install: say so when it runs outside Proxmox VE [@MickLesk](https://github.com/MickLesk) ([#19145](https://github.com/community-scripts/ProxmoxVE/pull/19145))
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
- docs: add 9.3 support [@cwmoriarty](https://github.com/cwmoriarty) ([#19129](https://github.com/community-scripts/ProxmoxVE/pull/19129))
|
||||
|
||||
@@ -54,12 +54,12 @@ function update_script() {
|
||||
|
||||
if [[ -z "$SSH_PUBLIC_KEY" ]]; then
|
||||
msg_error "No SSH public key provided!"
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! "$SSH_PUBLIC_KEY" =~ ^(ssh-rsa|ssh-dss|ssh-ed25519|ecdsa-sha2-) ]]; then
|
||||
msg_error "Invalid SSH public key format!"
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
|
||||
msg_info "Setting up SSH access"
|
||||
|
||||
@@ -38,7 +38,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/anki-sync-server/.env /opt/anki-sync-server/data
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Anki Sync Server"
|
||||
$STD uv pip install --python /opt/anki-sync-server/venv/bin/python "anki==$(get_latest_github_release "ankitects/anki")"
|
||||
cat <<EOF >~/.anki-sync-server
|
||||
@@ -62,7 +61,5 @@ description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW}Health check:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:8080/health${CL}"
|
||||
echo -e "${INFO}${YW}Sync server URL for the Anki clients:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:8080/${CL}"
|
||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:8080${CL}"
|
||||
@@ -45,7 +45,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/airflow/.env
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Apache Airflow to ${LATEST}"
|
||||
$STD uv pip install --python /opt/airflow/.venv/bin/python \
|
||||
"apache-airflow[postgres,fab]==${LATEST}" \
|
||||
|
||||
@@ -56,7 +56,6 @@ function update_script() {
|
||||
;;
|
||||
esac
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Python Environment (${AUDIOMUSE_BACKEND})"
|
||||
cd /opt/audiomuse-ai
|
||||
$STD uv venv --clear --seed --python "$PY_VERSION" /opt/audiomuse-ai/.venv
|
||||
|
||||
@@ -47,7 +47,6 @@ function update_script() {
|
||||
|
||||
msg_info "Configuring Baikal"
|
||||
cd /opt/baikal
|
||||
export COMPOSER_NO_SECURITY_BLOCKING=1
|
||||
$STD composer install || { msg_warn "composer.lock doesn't match composer.json (known upstream packaging issue) - regenerating"; $STD composer update; }
|
||||
msg_ok "Configured Baikal"
|
||||
|
||||
|
||||
+1
-2
@@ -51,10 +51,9 @@ function update_script() {
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bambuddy" "maziggy/bambuddy" "tarball" "latest" "/opt/bambuddy"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating Python Dependencies"
|
||||
cd /opt/bambuddy
|
||||
$STD uv venv --python 3.13 --clear
|
||||
$STD uv venv --clear
|
||||
$STD uv pip install -r requirements.txt
|
||||
msg_ok "Updated Python Dependencies"
|
||||
|
||||
|
||||
@@ -69,7 +69,6 @@ function update_script() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
if [[ "$(cat /opt/borg1-venv/.pinned_version 2>/dev/null)" != "$BORG1_VERSION" ]]; then
|
||||
msg_info "Installing Borg ${BORG1_VERSION} (Patience)"
|
||||
$STD uv venv --clear --python "$BORG_PYTHON" /opt/borg1-venv
|
||||
|
||||
@@ -40,7 +40,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/chevereto/app/env.php /opt/chevereto/content
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_UPLOAD_MAX_FILESIZE="512M" PHP_POST_MAX_SIZE="512M" PHP_MAX_EXECUTION_TIME="600" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="images" fetch_and_deploy_gh_release "chevereto" "chevereto/chevereto" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -39,7 +39,6 @@ function update_script() {
|
||||
systemctl stop nginx php8.4-fpm
|
||||
msg_ok "Stopped Cypht"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="soap,ldap" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cypht" "cypht-org/cypht" "prebuild" "latest" "/opt/cypht" "cypht.tar.gz"
|
||||
|
||||
msg_info "Updating Cypht"
|
||||
|
||||
@@ -36,7 +36,6 @@ function update_script() {
|
||||
systemctl stop databasement-worker databasement-scheduler php8.5-fpm
|
||||
msg_ok "Stopped Databasement"
|
||||
|
||||
PHP_VERSION="8.5" PHP_FPM="YES" PHP_MODULE="mongodb,smbclient" setup_php
|
||||
setup_composer
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
#!/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/dokuwiki/dokuwiki
|
||||
|
||||
APP="DokuWiki"
|
||||
var_tags="${var_tags:-wiki;documentation}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-512}"
|
||||
var_disk="${var_disk:-4}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
export var_admin_user="${var_admin_user:-}"
|
||||
export var_admin_pass="${var_admin_pass:-}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/dokuwiki ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "dokuwiki" "dokuwiki/dokuwiki"; then
|
||||
msg_info "Stopping DokuWiki"
|
||||
systemctl stop nginx php8.4-fpm
|
||||
msg_ok "Stopped DokuWiki"
|
||||
|
||||
fetch_and_deploy_gh_release "dokuwiki" "dokuwiki/dokuwiki" "prebuild" "latest" "/opt/dokuwiki" "dokuwiki-*.tgz"
|
||||
|
||||
msg_info "Removing obsolete DokuWiki files"
|
||||
grep -E '^[[:alnum:]_][^[:space:]]*$' /opt/dokuwiki/data/deleted.files | grep -Fv '..' | sed 's|^|/opt/dokuwiki/|' | xargs -r -d '\n' rm -rf --
|
||||
rm -f /opt/dokuwiki/install.php /opt/dokuwiki/data/cache/messages.txt
|
||||
chown -R www-data:www-data /opt/dokuwiki
|
||||
msg_ok "Removed obsolete DokuWiki files"
|
||||
|
||||
msg_info "Starting DokuWiki"
|
||||
systemctl start php8.4-fpm nginx
|
||||
msg_ok "Started DokuWiki"
|
||||
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}Admin login: /opt/dokuwiki_data/.env (inside the container)${CL}"
|
||||
@@ -46,7 +46,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/domain-monitor/.env
|
||||
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php
|
||||
setup_composer
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "domain-monitor" "Hosteroid/domain-monitor" "prebuild" "latest" "/opt/domain-monitor" "domain-monitor-v*.zip"
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ function update_script() {
|
||||
systemctl stop nginx cron php8.4-fpm
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="data custom client/custom" fetch_and_deploy_gh_release "espo-crm" "espocrm/espocrm" "prebuild" "latest" "/opt/espocrm" "EspoCRM-*.zip"
|
||||
|
||||
msg_info "Migrating EspoCRM"
|
||||
|
||||
+3
-4
@@ -40,15 +40,14 @@ function update_script() {
|
||||
|
||||
create_backup /opt/fireshare/fireshare.env
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
|
||||
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/fireshare" setup_uv
|
||||
UV_PROJECT_DIR="/opt/fireshare" setup_uv
|
||||
restore_backup
|
||||
rm -f /usr/local/bin/fireshare
|
||||
|
||||
if ! grep -q "__FIRESHARE_PORT__" /etc/nginx/nginx.conf; then
|
||||
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
|
||||
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's|alias /data/|alias /opt/fireshare-data/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+[^;]*;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
|
||||
sed -i 's/__FIRESHARE_PORT__/80/g' /etc/nginx/nginx.conf
|
||||
cp /opt/fireshare/app/nginx/error.html /etc/nginx/
|
||||
@@ -57,7 +56,7 @@ function update_script() {
|
||||
msg_info "Configuring Fireshare"
|
||||
|
||||
cd /opt/fireshare
|
||||
$STD uv venv --python 3.14 --clear
|
||||
$STD uv venv --clear
|
||||
$STD .venv/bin/python -m ensurepip --upgrade
|
||||
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
||||
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
||||
|
||||
@@ -64,15 +64,15 @@ function update_script() {
|
||||
if [[ -n "${mode:-}" ]]; then
|
||||
if [[ -z "${var_forgejo_instance:-}" ]]; then
|
||||
msg_error "var_forgejo_instance is required for unattended installs."
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z "${var_forgejo_runner_uuid:-}" ]]; then
|
||||
msg_error "var_forgejo_runner_uuid is required for unattended installs."
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z "${var_forgejo_runner_token:-}" ]]; then
|
||||
msg_error "var_forgejo_runner_token is required for unattended installs."
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -41,7 +41,6 @@ function update_script() {
|
||||
msg_ok "Stopped FreeScout"
|
||||
|
||||
create_backup /opt/freescout/.env
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="storage Modules public/modules" fetch_and_deploy_gh_release "freescout" "freescout-help-desk/freescout" "tarball"
|
||||
restore_backup
|
||||
|
||||
|
||||
+5
-2
@@ -38,11 +38,14 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if ! php -r 'exit((extension_loaded("intl") && extension_loaded("xml")) ? 0 : 1);' 2>/dev/null; then
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="xml,intl" setup_php
|
||||
msg_info "Installing missing PHP extensions"
|
||||
apt_update_safe
|
||||
$STD apt install -y php-xml php-intl
|
||||
systemctl reload apache2
|
||||
msg_ok "Installed missing PHP extensions"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "freshrss" "FreshRSS/FreshRSS"; then
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="xml,intl" setup_php
|
||||
msg_info "Stopping Apache2"
|
||||
systemctl stop apache2
|
||||
msg_ok "Stopped Apache2"
|
||||
|
||||
@@ -33,7 +33,6 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "grav" "getgrav/grav"; then
|
||||
PHP_FPM="YES" setup_php
|
||||
msg_info "Creating Backup"
|
||||
cd /opt/grav
|
||||
bin/grav backup -nq
|
||||
|
||||
+2
-3
@@ -44,10 +44,9 @@ function update_script() {
|
||||
|
||||
restore_backup
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating Python Dependencies"
|
||||
cd /opt/homelable/backend
|
||||
$STD uv venv --python 3.13 --clear /opt/homelable/backend/.venv
|
||||
$STD uv venv --clear /opt/homelable/backend/.venv
|
||||
$STD uv pip install --python /opt/homelable/backend/.venv/bin/python -r requirements.txt
|
||||
msg_ok "Updated Python Dependencies"
|
||||
|
||||
@@ -61,7 +60,7 @@ function update_script() {
|
||||
msg_info "Restoring MCP Server"
|
||||
MCP_OWNER=$(stat -c '%U' /opt/homelable/mcp/.env)
|
||||
cd /opt/homelable/mcp
|
||||
$STD uv venv --python 3.13 --clear /opt/homelable/mcp/.venv
|
||||
$STD uv venv --clear /opt/homelable/mcp/.venv
|
||||
$STD uv pip install --python /opt/homelable/mcp/.venv/bin/python -r requirements.txt
|
||||
chown -R "$MCP_OWNER":"$MCP_OWNER" /opt/homelable/mcp
|
||||
systemctl restart homelable-mcp
|
||||
|
||||
@@ -61,7 +61,6 @@ function update_script() {
|
||||
/opt/hortusfox/public/img \
|
||||
/opt/hortusfox/public/themes
|
||||
|
||||
PHP_VERSION="8.3" PHP_APACHE="YES" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="public/attachments public/backup public/exports public/snd" fetch_and_deploy_gh_release "hortusfox" "danielbrendel/hortusfox-web" "tarball"
|
||||
restore_backup
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ function update_script() {
|
||||
$STD supervisorctl stop all
|
||||
msg_ok "Services Stopped"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="pdo-pgsql" setup_php
|
||||
setup_composer
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
PG_VERSION="17" setup_postgresql
|
||||
|
||||
@@ -38,7 +38,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/invoiceninja/.env /opt/invoiceninja/storage /opt/invoiceninja/public/storage /opt/invoiceninja/vendor/beganovich/snappdf/versions
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="soap" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "invoiceninja" "invoiceninja/invoiceninja" "prebuild" "latest" "/opt/invoiceninja" "invoiceninja.tar.gz"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -48,7 +48,6 @@ EOF
|
||||
|
||||
create_backup /opt/invoiceshelf/.env
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bcmath,gd,intl,xml,zip,pdo_pgsql,mbstring,curl,exif" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="storage" fetch_and_deploy_gh_release "invoiceshelf" "InvoiceShelf/InvoiceShelf" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
setup_uv
|
||||
|
||||
if check_for_gh_release "kapowarr" "Casvt/Kapowarr"; then
|
||||
msg_info "Stopping Service"
|
||||
|
||||
@@ -40,7 +40,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/kima-hub/backend/.env /opt/kima-hub/frontend/.env
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -40,7 +40,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/koel/.env /opt/koel/storage /opt/koel/public/img
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "koel" "koel/koel" "prebuild" "latest" "/opt/koel" "koel-*.tar.gz"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
#!/usr/bin/env bash
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Stephen Chin (steveonjava)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/langfuse/langfuse
|
||||
|
||||
APP="Langfuse"
|
||||
var_tags="${var_tags:-ai;monitoring;analytics}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-16384}"
|
||||
var_disk="${var_disk:-100}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
export var_admin_email="${var_admin_email:-}"
|
||||
export var_admin_pass="${var_admin_pass:-}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/langfuse || ! -f /opt/langfuse_data/.env ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "seaweedfs" "seaweedfs/seaweedfs"; then
|
||||
msg_info "Stopping SeaweedFS"
|
||||
systemctl stop langfuse-storage
|
||||
msg_ok "Stopped SeaweedFS"
|
||||
|
||||
fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_$(arch_resolve).tar.gz"
|
||||
|
||||
msg_info "Starting SeaweedFS"
|
||||
systemctl start langfuse-storage
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:8333/healthz
|
||||
msg_ok "Started SeaweedFS"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "migrate" "golang-migrate/migrate"; then
|
||||
fetch_and_deploy_gh_release "migrate" "golang-migrate/migrate" "binary"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "langfuse" "langfuse/langfuse"; then
|
||||
msg_warn "Take a container snapshot before updating Langfuse; database migrations cannot be rolled back by this script."
|
||||
msg_info "Stopping Langfuse"
|
||||
systemctl stop langfuse-web langfuse-worker
|
||||
msg_ok "Stopped Langfuse"
|
||||
|
||||
create_backup "$HOME/.langfuse"
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "langfuse" "langfuse/langfuse" "tarball"
|
||||
restore_backup
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.engines.pnpm' /opt/langfuse/package.json)" setup_nodejs
|
||||
RUST_TOOLCHAIN="$(sed -n 's/^channel = "\(.*\)"/\1/p' /opt/langfuse/packages/native/rust-toolchain.toml)" RUST_PROFILE="minimal" setup_rust
|
||||
|
||||
msg_info "Building Langfuse"
|
||||
cd /opt/langfuse
|
||||
HUSKY=0 $STD pnpm install --frozen-lockfile
|
||||
DOCKER_BUILD=1 NEXT_TELEMETRY_DISABLED=1 CI=true pnpm_config_verify_deps_before_run=false $STD pnpm turbo run build --filter=web... --filter=worker... --concurrency=1
|
||||
cp -r web/.next/static web/.next/standalone/web/.next/
|
||||
cp -r web/public web/.next/standalone/web/
|
||||
msg_ok "Built Langfuse"
|
||||
|
||||
msg_info "Starting Langfuse"
|
||||
systemctl restart langfuse-migrate
|
||||
systemctl start langfuse-web langfuse-worker
|
||||
$STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3000/api/public/ready
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3030/api/health
|
||||
cat <<EOF >"$HOME/.langfuse"
|
||||
$(jq -r '.version' /opt/langfuse/package.json)
|
||||
EOF
|
||||
msg_ok "Started Langfuse"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
||||
@@ -39,7 +39,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/leantime/config/.env
|
||||
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "leantime" "Leantime/leantime" "prebuild" "latest" "/opt/leantime" Leantime*.tar.gz
|
||||
|
||||
restore_backup
|
||||
|
||||
+1
-3
@@ -38,17 +38,15 @@ function update_script() {
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
create_backup /opt/librenms/.env /opt/librenms/config.php
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="cli,snmp,gmp" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="rrd" fetch_and_deploy_gh_release "librenms" "librenms/librenms" "tarball"
|
||||
restore_backup
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating LibreNMS"
|
||||
mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage}
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 771 /opt/librenms
|
||||
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --python 3.13 --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan optimize:clear"
|
||||
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force --isolated"
|
||||
|
||||
@@ -43,7 +43,6 @@ function update_script() {
|
||||
/opt/lychee/public/uploads \
|
||||
/opt/lychee/public/dist
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bcmath,ldap,exif,gd,intl,imagick,redis,zip,pdo_pgsql,pcntl" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "lychee" "LycheeOrg/Lychee" "prebuild" "latest" "/opt/lychee" "Lychee.zip"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -38,7 +38,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/matomo/config/config.ini.php /opt/matomo/misc/user /root/matomo.creds
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="pdo_mysql,gd,mbstring,xml,curl,intl,zip,ldap" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "matomo" "matomo-org/matomo" "prebuild" "latest" "/opt/matomo" "matomo-*.zip"
|
||||
|
||||
msg_info "Setting up Matomo"
|
||||
|
||||
@@ -36,7 +36,6 @@ function update_script() {
|
||||
systemctl stop matter-server
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Matter Server"
|
||||
MATTER_VERSION=$(get_latest_github_release "matter-js/python-matter-server")
|
||||
$STD uv pip install --python /opt/matter-server/.venv/bin/python --upgrade "python-matter-server[server]==${MATTER_VERSION}"
|
||||
|
||||
@@ -39,7 +39,6 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "monica" "monicahq/monica"; then
|
||||
PHP_VERSION="8.2" PHP_APACHE="YES" PHP_MODULE="mysqli,pdo-mysql" setup_php
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop apache2
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
@@ -29,7 +29,6 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "mylar3" "MylarComics/mylar3"; then
|
||||
PYTHON_VERSION="3.11" setup_uv
|
||||
fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball"
|
||||
systemctl restart mylar3
|
||||
msg_ok "Updated successfully!"
|
||||
|
||||
@@ -40,7 +40,6 @@ function update_script() {
|
||||
systemctl stop nagios
|
||||
msg_ok "Stopped Nagios"
|
||||
|
||||
PHP_APACHE="YES" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "nagios" "NagiosEnterprises/nagioscore" "tarball"
|
||||
|
||||
msg_info "Building Nagios Core"
|
||||
|
||||
@@ -36,10 +36,8 @@ function update_script() {
|
||||
systemctl stop netalertx
|
||||
msg_ok "Stopped NetAlertX"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="curl,sqlite3" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP=".venv" fetch_and_deploy_gh_release "netalertx" "netalertx/NetAlertX" "tarball"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating NetAlertX"
|
||||
cd /opt/netalertx
|
||||
$STD uv pip install --python .venv/bin/python -r requirements.txt
|
||||
|
||||
@@ -41,7 +41,6 @@ function update_script() {
|
||||
systemctl stop openviking
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating OpenViking"
|
||||
$STD uv pip install --python /opt/openviking/bin/python --upgrade openviking
|
||||
msg_ok "Updated OpenViking"
|
||||
|
||||
@@ -31,7 +31,6 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "partdb" "Part-DB/Part-DB-server"; then
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="xsl" PHP_POST_MAX_SIZE="100M" PHP_UPLOAD_MAX_FILESIZE="100M" setup_php
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop apache2
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
+12
-6
@@ -31,20 +31,26 @@ function update_script() {
|
||||
fi
|
||||
|
||||
setup_mariadb
|
||||
if [[ "$(php -v 2>/dev/null | awk '/^PHP/{print $2}' | cut -d. -f1,2)" != "8.4" ]]; then
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php
|
||||
fi
|
||||
CURRENT_PHP=$(php -v 2>/dev/null | awk '/^PHP/{print $2}' | cut -d. -f1,2)
|
||||
setup_composer
|
||||
|
||||
if [[ "$CURRENT_PHP" != "8.4" ]]; then
|
||||
msg_info "Migrating PHP $CURRENT_PHP to 8.4"
|
||||
$STD apt remove -y php"${CURRENT_PHP//./}"*
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" setup_php
|
||||
msg_ok "Migrated PHP $CURRENT_PHP to 8.4"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "pelican-panel" "pelican-dev/panel"; then
|
||||
msg_info "Stopping Service"
|
||||
cd /opt/pelican-panel
|
||||
$STD php artisan down
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
mkdir -p /opt/backup/storage/app
|
||||
mkdir -p /opt/backup
|
||||
cp -a /opt/pelican-panel/.env /opt/backup
|
||||
[[ -d /opt/pelican-panel/storage/app/public ]] && cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/
|
||||
mkdir -p /opt/backup/storage/app/
|
||||
cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/
|
||||
|
||||
SQLITE_INSTALL=$(ls /opt/pelican-panel/database/*.sqlite 1>/dev/null 2>&1 && echo "true" || echo "false")
|
||||
$SQLITE_INSTALL && cp -r /opt/pelican-panel/database/*.sqlite /opt/backup
|
||||
@@ -57,7 +63,7 @@ function update_script() {
|
||||
cp -a /opt/backup/.env /opt/pelican-panel/
|
||||
grep -q "^APP_URL=http://panel.test$" /opt/pelican-panel/.env && sed -i "s|^APP_URL=.*|APP_URL=http://${LOCAL_IP}|" /opt/pelican-panel/.env
|
||||
$SQLITE_INSTALL && mv /opt/backup/*.sqlite /opt/pelican-panel/database/
|
||||
[[ -d /opt/backup/storage/app/public ]] && cp -a /opt/backup/storage/app/public /opt/pelican-panel/storage/app/
|
||||
cp -a /opt/backup/storage/app/public /opt/pelican-panel/storage/app/
|
||||
|
||||
$STD composer install --no-dev --optimize-autoloader --no-interaction
|
||||
PANEL_URL="$(sed -n 's/^APP_URL=//p' /opt/pelican-panel/.env | tr -d "\"'")"
|
||||
|
||||
@@ -40,7 +40,6 @@ function update_script() {
|
||||
create_backup /opt/pixelfed/.env \
|
||||
/opt/pixelfed/storage
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bcmath,ctype,curl,exif,gd,imagick,intl,mbstring,pgsql,redis,xml,zip" PHP_UPLOAD_MAX_FILESIZE="500M" PHP_POST_MAX_SIZE="500M" PHP_MAX_EXECUTION_TIME="600" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pixelfed" "pixelfed/pixelfed" "tarball" "latest" "/opt/pixelfed"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -52,7 +52,6 @@ function update_script() {
|
||||
if check_for_gh_release "poweradmin" "poweradmin/poweradmin"; then
|
||||
create_backup /opt/poweradmin/config/settings.php
|
||||
|
||||
PHP_VERSION="8.3" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="gettext,tokenizer,sqlite3,ldap" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "poweradmin" "poweradmin/poweradmin" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -36,7 +36,6 @@ function update_script() {
|
||||
systemctl stop pricebuddy-worker
|
||||
msg_ok "Stopped PriceBuddy Worker"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MEMORY_LIMIT="2048M" setup_php
|
||||
setup_composer
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
if check_for_gh_release "privatebin" "PrivateBin/PrivateBin"; then
|
||||
PHP_VERSION="8.2" PHP_FPM="YES" setup_php
|
||||
msg_info "Creating backup"
|
||||
cp -f /opt/privatebin/cfg/conf.php /tmp/privatebin_conf.bak
|
||||
msg_ok "Backup created"
|
||||
|
||||
@@ -44,7 +44,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/projectsend/.env /opt/projectsend/storage/app/files
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap,pcntl" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "projectsend" "projectsend/projectsend" "prebuild" "latest" "/opt/projectsend"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -35,7 +35,6 @@ function update_script() {
|
||||
systemctl stop pyload
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating ${APP}"
|
||||
$STD uv pip install --python /opt/pyload/.venv --upgrade --prerelease allow "pyload-ng[all]"
|
||||
msg_ok "Updated ${APP}"
|
||||
|
||||
@@ -34,7 +34,6 @@ function update_script() {
|
||||
if check_for_gh_release "rss-bridge" "RSS-Bridge/rss-bridge"; then
|
||||
create_backup /opt/rss-bridge/config.ini.php
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "rss-bridge" "RSS-Bridge/rss-bridge" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
+2
-2
@@ -35,12 +35,12 @@ function update_script() {
|
||||
systemctl stop scraparr
|
||||
msg_ok "Services Stopped"
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr" "tarball" "latest" "/opt/scraparr"
|
||||
|
||||
msg_info "Updating Scraparr"
|
||||
cd /opt/scraparr
|
||||
$STD uv venv --python 3.13 --clear /opt/scraparr/.venv
|
||||
$STD uv venv --clear /opt/scraparr/.venv
|
||||
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
|
||||
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
|
||||
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
|
||||
|
||||
@@ -38,7 +38,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/shlink/.env /opt/shlink/data
|
||||
|
||||
PHP_VERSION="8.5" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "shlink" "shlinkio/shlink" "prebuild" "latest" "/opt/shlink" "shlink*_php8.5_dist.zip"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -40,7 +40,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/solidtime/.env
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="bcmath,gd,intl,xml,zip,pdo_pgsql,redis,mbstring,curl" setup_php
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="storage" fetch_and_deploy_gh_release "solidtime" "solidtime-io/solidtime" "tarball"
|
||||
|
||||
restore_backup
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ export var_llm_model="${var_llm_model:-}"
|
||||
|
||||
if [[ -n "$var_llm_base_url" && -z "$var_llm_model" ]]; then
|
||||
msg_error "var_llm_model is required with var_llm_base_url."
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
|
||||
header_info "$APP"
|
||||
|
||||
@@ -43,7 +43,6 @@ function update_script() {
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "subwave" "perminder-klair/subwave" "tarball"
|
||||
fetch_and_deploy_gh_release "liquidsoap" "savonet/liquidsoap" "binary" "$(grep -oP 'savonet/liquidsoap:\Kv[0-9.]+' /opt/subwave/docker/Dockerfile.broadcast)" "" "liquidsoap_*-debian-trixie-ocaml4.14.2-*_$(arch_resolve).deb"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Analyzer and Kokoro"
|
||||
$STD uv pip install --python /opt/analyzer/venv/bin/python librosa==0.11.0 soundfile==0.14.0 pyloudnorm==0.2.0
|
||||
$STD uv pip install --python /opt/kokoro/venv/bin/python kokoro-onnx==0.5.0 soundfile==0.12.1 misaki==0.9.4 pyopenjtalk-plus==0.4.1.post10 cn2an==0.5.24 jieba==0.42.1 ordered-set==4.1.0 pypinyin==0.55.0 pypinyin-dict==0.9.0
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
setup_uv
|
||||
if check_for_gh_release "tianji" "msgbyte/tianji"; then
|
||||
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
|
||||
|
||||
|
||||
+1
-2
@@ -49,10 +49,9 @@ function update_script() {
|
||||
|
||||
restore_backup
|
||||
|
||||
PYTHON_VERSION="3.13" setup_uv
|
||||
msg_info "Updating Python Dependencies"
|
||||
cd /opt/transmute
|
||||
$STD uv venv --python 3.13 --clear /opt/transmute/.venv
|
||||
$STD uv venv --clear /opt/transmute/.venv
|
||||
$STD uv pip install --python /opt/transmute/.venv/bin/python -r requirements.txt
|
||||
msg_ok "Updated Python Dependencies"
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
|
||||
APP="TREK"
|
||||
var_tags="${var_tags:-travel;planning;collaboration}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-6144}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
|
||||
@@ -47,7 +47,6 @@ function update_script() {
|
||||
cp -r /opt/trip/src/dist/trip/browser/* /opt/trip/frontend/
|
||||
msg_ok "Updated Frontend"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating Backend"
|
||||
cd /opt/trip/backend
|
||||
$STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt
|
||||
|
||||
@@ -39,7 +39,6 @@ function update_script() {
|
||||
systemctl stop nginx
|
||||
msg_ok "Stopped Typecho"
|
||||
|
||||
PHP_FPM="YES" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "typecho" "typecho/typecho" "prebuild" "latest" "/opt/typecho" "typecho.zip"
|
||||
fetch_and_deploy_from_url "https://github.com/typecho/languages/releases/download/ci/langs.zip" "/opt/typecho_data/usr/langs"
|
||||
|
||||
|
||||
@@ -41,8 +41,6 @@ function update_script() {
|
||||
|
||||
VLLM_BACKEND="$(cat /opt/vllm/.backend 2>/dev/null || echo cuda)"
|
||||
VLLM_VERSION="$(get_latest_github_release "vllm-project/vllm")"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
msg_info "Updating vLLM (${VLLM_BACKEND}, Patience)"
|
||||
case "$VLLM_BACKEND" in
|
||||
rocm)
|
||||
|
||||
@@ -41,7 +41,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/wallabag/app/config/parameters.yml
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="tidy" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wallabag" "wallabag/wallabag" "prebuild" "latest" "/opt/wallabag" "wallabag-*.tar.gz"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -31,7 +31,6 @@ function update_script() {
|
||||
fi
|
||||
|
||||
if check_for_gh_release "wallos" "ellite/Wallos"; then
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" setup_php
|
||||
msg_info "Creating backup"
|
||||
mkdir -p /opt/logos
|
||||
mv /opt/wallos/db/wallos.db /opt/wallos.db
|
||||
|
||||
+1
-2
@@ -39,10 +39,9 @@ function update_script() {
|
||||
|
||||
fetch_and_deploy_gh_release "warracker" "sassanix/Warracker" "tarball" "latest" "/opt/warracker"
|
||||
|
||||
PYTHON_VERSION="3.15" setup_uv
|
||||
msg_info "Updating Warracker"
|
||||
cd /opt/warracker/backend
|
||||
$STD uv venv --python 3.15 --clear .venv
|
||||
$STD uv venv --clear .venv
|
||||
$STD source .venv/bin/activate
|
||||
$STD uv pip install -r requirements.txt
|
||||
msg_ok "Updated Warracker"
|
||||
|
||||
@@ -37,7 +37,6 @@ function update_script() {
|
||||
msg_ok "Stopped WatchState"
|
||||
|
||||
create_backup /opt/watchstate/.env
|
||||
PHP_VERSION="8.5" PHP_FPM="YES" setup_php
|
||||
setup_composer
|
||||
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "watchstate" "arabcoders/watchstate" "tarball" "latest" "/opt/watchstate" "" "v"
|
||||
|
||||
@@ -53,7 +53,6 @@ function update_script() {
|
||||
|
||||
create_backup /opt/webtrees/data
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="bcmath,gd,intl,xml,zip,pdo_mysql,mbstring,curl" setup_php
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "webtrees" "fisharebest/webtrees" "prebuild" "latest" "/opt/webtrees" "webtrees-*.zip"
|
||||
|
||||
restore_backup
|
||||
|
||||
@@ -25,7 +25,6 @@ PG_DB_NAME="baikal_db" PG_DB_USER="baikal_user" PG_DB_PASS="$(random_password 16
|
||||
|
||||
msg_info "Configuring Baikal"
|
||||
cd /opt/baikal
|
||||
export COMPOSER_NO_SECURITY_BLOCKING=1
|
||||
$STD composer install || { msg_warn "composer.lock doesn't match composer.json (known upstream packaging issue) - regenerating"; $STD composer update; }
|
||||
cat <<EOF >/opt/baikal/config/baikal.yaml
|
||||
database:
|
||||
|
||||
@@ -1,127 +0,0 @@
|
||||
#!/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/dokuwiki/dokuwiki
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
var_admin_user="${var_admin_user:-admin}"
|
||||
var_admin_user="${var_admin_user,,}"
|
||||
if [[ ! "$var_admin_user" =~ ^[a-z0-9._-]+$ ]]; then
|
||||
msg_warn "Invalid admin username '${var_admin_user}', using admin"
|
||||
var_admin_user="admin"
|
||||
fi
|
||||
var_admin_pass="${var_admin_pass:-$(random_password 16)}"
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y nginx
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" setup_php
|
||||
fetch_and_deploy_gh_release "dokuwiki" "dokuwiki/dokuwiki" "prebuild" "latest" "/opt/dokuwiki" "dokuwiki-*.tgz"
|
||||
|
||||
msg_info "Configuring DokuWiki"
|
||||
mkdir -p /opt/dokuwiki_data
|
||||
cat <<EOF >/opt/dokuwiki_data/.env
|
||||
DOKUWIKI_ADMIN_USER=${var_admin_user}
|
||||
DOKUWIKI_ADMIN_PASS=${var_admin_pass}
|
||||
EOF
|
||||
chmod 600 /opt/dokuwiki_data/.env
|
||||
cat <<'EOF' >/opt/dokuwiki/conf/local.php
|
||||
<?php
|
||||
$conf['title'] = 'DokuWiki';
|
||||
$conf['lang'] = 'en';
|
||||
$conf['license'] = 'cc-by-sa';
|
||||
$conf['useacl'] = 1;
|
||||
$conf['superuser'] = '@admin';
|
||||
$conf['disableactions'] = 'register';
|
||||
$conf['userewrite'] = 1;
|
||||
EOF
|
||||
ADMIN_HASH=$(php -r 'echo password_hash($argv[1], PASSWORD_BCRYPT);' "$var_admin_pass")
|
||||
cat <<EOF >/opt/dokuwiki/conf/users.auth.php
|
||||
# users.auth.php
|
||||
# <?php exit()?>
|
||||
# Don't modify the lines above
|
||||
#
|
||||
# login:passwordhash:Real Name:email:groups,comma,separated
|
||||
|
||||
${var_admin_user}:${ADMIN_HASH}:Administrator:admin@localhost:admin,user
|
||||
EOF
|
||||
cat <<'EOF' >/opt/dokuwiki/conf/acl.auth.php
|
||||
# acl.auth.php
|
||||
# <?php exit()?>
|
||||
# Don't modify the lines above
|
||||
#
|
||||
# none 0, read 1, edit 2, create 4, upload 8, delete 16
|
||||
|
||||
* @ALL 1
|
||||
* @user 8
|
||||
EOF
|
||||
cat <<'EOF' >/opt/dokuwiki/conf/plugins.local.php
|
||||
<?php
|
||||
$plugins['authad'] = 0;
|
||||
$plugins['authldap'] = 0;
|
||||
EOF
|
||||
rm -f /opt/dokuwiki/install.php
|
||||
chown -R www-data:www-data /opt/dokuwiki
|
||||
msg_ok "Configured DokuWiki"
|
||||
|
||||
msg_info "Configuring Nginx"
|
||||
PHP_SOCK=$(get_php_fpm_socket)
|
||||
cat <<EOF >/etc/nginx/sites-available/dokuwiki
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
|
||||
root /opt/dokuwiki;
|
||||
index doku.php;
|
||||
|
||||
client_max_body_size 128M;
|
||||
server_tokens off;
|
||||
fastcgi_hide_header X-Powered-By;
|
||||
|
||||
location ~ ^/(conf|bin|inc|vendor)/ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/data/ {
|
||||
internal;
|
||||
}
|
||||
location ~ /\.|^/(install\.php|README|VERSION|COPYING|SECURITY\.md)\$ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/lib.*\.(js|css|gif|png|ico|jpg|jpeg|svg)\$ {
|
||||
expires 365d;
|
||||
}
|
||||
location / {
|
||||
try_files \$uri \$uri/ @dokuwiki;
|
||||
}
|
||||
location @dokuwiki {
|
||||
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=\$1 last;
|
||||
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=\$1 last;
|
||||
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_\$1&id=\$2 last;
|
||||
rewrite ^/(.*) /doku.php?id=\$1&\$args last;
|
||||
}
|
||||
location ~ \.php\$ {
|
||||
try_files \$uri \$uri/ /doku.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
fastcgi_pass unix:${PHP_SOCK};
|
||||
}
|
||||
}
|
||||
EOF
|
||||
nginx_enable_site "dokuwiki"
|
||||
msg_ok "Configured Nginx"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -140,8 +140,7 @@ $STD npm run build
|
||||
systemctl stop nginx
|
||||
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
|
||||
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's|alias /data/|alias /opt/fireshare-data/|g' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+[^;]*;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
|
||||
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
|
||||
sed -i 's/__FIRESHARE_PORT__/80/g' /etc/nginx/nginx.conf
|
||||
cp /opt/fireshare/app/nginx/error.html /etc/nginx/
|
||||
|
||||
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
if [[ -z "${var_forgejo_runner_uuid:-}" ]]; then
|
||||
msg_error "No runner UUID provided. Cannot continue."
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "${var_forgejo_runner_token:-}" ]]; then
|
||||
@@ -34,7 +34,7 @@ fi
|
||||
|
||||
if [[ -z "${var_forgejo_runner_token:-}" ]]; then
|
||||
msg_error "No runner registration token provided. Cannot continue."
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DEFAULT_RUNNER_LABELS="linux-amd64:docker://node:22-bookworm"
|
||||
|
||||
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y caddy
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bcmath,gd,intl,xml,zip,pdo_pgsql,mbstring,curl,exif" setup_php
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULES="bcmath,gd,intl,xml,zip,pdo_pgsql,mbstring,curl,exif" setup_php
|
||||
setup_composer
|
||||
NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs
|
||||
PG_VERSION="16" setup_postgresql
|
||||
|
||||
@@ -37,7 +37,7 @@ fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball"
|
||||
|
||||
msg_info "Installing Python Dependencies"
|
||||
$STD uv venv --python 3.13 /opt/kima-hub/venv
|
||||
$STD uv pip install --no-cache --torch-backend cpu --python /opt/kima-hub/venv \
|
||||
$STD uv pip install --no-cache --python /opt/kima-hub/venv \
|
||||
tensorflow \
|
||||
essentia-tensorflow \
|
||||
redis \
|
||||
|
||||
@@ -0,0 +1,254 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Stephen Chin (steveonjava)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/langfuse/langfuse
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
if [[ -z "${var_admin_email:-}" ]]; then
|
||||
var_admin_email=$(prompt_input "Langfuse admin email:" "admin@example.com" 60)
|
||||
fi
|
||||
var_admin_email="${var_admin_email:-admin@example.com}"
|
||||
if [[ ! "$var_admin_email" =~ ^[A-Za-z0-9_+-]+(\.[A-Za-z0-9_+-]+)*@([A-Za-z0-9][A-Za-z0-9-]*\.)+[A-Za-z]{2,}$ ]]; then
|
||||
msg_warn "Invalid email '${var_admin_email}', falling back to admin@example.com"
|
||||
var_admin_email="admin@example.com"
|
||||
fi
|
||||
var_admin_pass="${var_admin_pass:-}"
|
||||
if [[ -n "$var_admin_pass" ]] && [[ ${#var_admin_pass} -lt 8 || "$var_admin_pass" == *[[:space:][:cntrl:]\"\'\\]* ]]; then
|
||||
msg_warn "Admin password needs at least 8 characters and no spaces, quotes or backslashes, generating one"
|
||||
var_admin_pass=""
|
||||
fi
|
||||
if [[ -z "$var_admin_pass" ]]; then
|
||||
var_admin_pass=$(random_password 24)
|
||||
fi
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y build-essential redis-server
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="langfuse" PG_DB_USER="langfuse" setup_postgresql_db
|
||||
setup_clickhouse
|
||||
fetch_and_deploy_gh_release "langfuse" "langfuse/langfuse" "tarball"
|
||||
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.engines.pnpm' /opt/langfuse/package.json)" setup_nodejs
|
||||
RUST_TOOLCHAIN="$(sed -n 's/^channel = "\(.*\)"/\1/p' /opt/langfuse/packages/native/rust-toolchain.toml)" RUST_PROFILE="minimal" setup_rust
|
||||
fetch_and_deploy_gh_release "migrate" "golang-migrate/migrate" "binary"
|
||||
fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_$(arch_resolve).tar.gz"
|
||||
|
||||
msg_info "Building Langfuse"
|
||||
cd /opt/langfuse
|
||||
HUSKY=0 $STD pnpm install --frozen-lockfile
|
||||
DOCKER_BUILD=1 NEXT_TELEMETRY_DISABLED=1 CI=true pnpm_config_verify_deps_before_run=false $STD pnpm turbo run build --filter=web... --filter=worker... --concurrency=1
|
||||
cp -r web/.next/static web/.next/standalone/web/.next/
|
||||
cp -r web/public web/.next/standalone/web/
|
||||
msg_ok "Built Langfuse"
|
||||
|
||||
msg_info "Configuring Langfuse"
|
||||
mkdir -p /opt/langfuse_data/storage
|
||||
chmod 700 /opt/langfuse_data
|
||||
REDIS_PASS=$(random_password 32)
|
||||
CLICKHOUSE_PASS=$(random_password 32)
|
||||
S3_SECRET=$(random_password 48)
|
||||
PUBLIC_KEY="pk-lf-$(random_password 32)"
|
||||
SECRET_KEY="sk-lf-$(random_password 32)"
|
||||
cat <<EOF >/opt/langfuse_data/.env
|
||||
NODE_ENV=production
|
||||
NEXTAUTH_URL=http://${LOCAL_IP}:3000
|
||||
NEXTAUTH_SECRET=$(random_password 48)
|
||||
SALT=$(random_password 48)
|
||||
ENCRYPTION_KEY=$(openssl rand -hex 32)
|
||||
DATABASE_URL=postgresql://langfuse:${PG_DB_PASS}@127.0.0.1:5432/langfuse
|
||||
DIRECT_URL=postgresql://langfuse:${PG_DB_PASS}@127.0.0.1:5432/langfuse
|
||||
CLICKHOUSE_URL=http://127.0.0.1:8123
|
||||
CLICKHOUSE_MIGRATION_URL=clickhouse://127.0.0.1:9000
|
||||
CLICKHOUSE_USER=langfuse
|
||||
CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASS}
|
||||
CLICKHOUSE_DB=default
|
||||
CLICKHOUSE_CLUSTER_ENABLED=false
|
||||
REDIS_HOST=127.0.0.1
|
||||
REDIS_PORT=6379
|
||||
REDIS_AUTH=${REDIS_PASS}
|
||||
LANGFUSE_S3_EVENT_UPLOAD_BUCKET=langfuse
|
||||
LANGFUSE_S3_EVENT_UPLOAD_PREFIX=events/
|
||||
LANGFUSE_S3_EVENT_UPLOAD_REGION=us-east-1
|
||||
LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT=http://127.0.0.1:8333
|
||||
LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID=langfuse
|
||||
LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY=${S3_SECRET}
|
||||
LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE=true
|
||||
AUTH_DISABLE_SIGNUP=true
|
||||
TELEMETRY_ENABLED=false
|
||||
NEXT_TELEMETRY_DISABLED=1
|
||||
LANGFUSE_INIT_ORG_ID=default-org
|
||||
LANGFUSE_INIT_ORG_NAME=Default
|
||||
LANGFUSE_INIT_PROJECT_ID=default-project
|
||||
LANGFUSE_INIT_PROJECT_NAME=Default
|
||||
LANGFUSE_INIT_PROJECT_PUBLIC_KEY=${PUBLIC_KEY}
|
||||
LANGFUSE_INIT_PROJECT_SECRET_KEY=${SECRET_KEY}
|
||||
LANGFUSE_INIT_USER_EMAIL=${var_admin_email}
|
||||
LANGFUSE_INIT_USER_NAME=Admin
|
||||
LANGFUSE_INIT_USER_PASSWORD=${var_admin_pass}
|
||||
EOF
|
||||
chmod 600 /opt/langfuse_data/.env
|
||||
cat <<EOF >/etc/redis/langfuse.conf
|
||||
bind 127.0.0.1 ::1
|
||||
protected-mode yes
|
||||
requirepass ${REDIS_PASS}
|
||||
maxmemory-policy noeviction
|
||||
appendonly yes
|
||||
EOF
|
||||
chown root:redis /etc/redis/langfuse.conf
|
||||
chmod 640 /etc/redis/langfuse.conf
|
||||
cat <<EOF >>/etc/redis/redis.conf
|
||||
include /etc/redis/langfuse.conf
|
||||
EOF
|
||||
cat <<EOF >/etc/clickhouse-server/users.d/langfuse.xml
|
||||
<clickhouse>
|
||||
<users>
|
||||
<default remove="remove"/>
|
||||
<langfuse>
|
||||
<password_sha256_hex>$(printf '%s' "${CLICKHOUSE_PASS}" | sha256sum | cut -d ' ' -f1)</password_sha256_hex>
|
||||
<networks><ip>127.0.0.1</ip><ip>::1</ip></networks>
|
||||
<profile>default</profile>
|
||||
<quota>default</quota>
|
||||
<access_management>1</access_management>
|
||||
</langfuse>
|
||||
</users>
|
||||
</clickhouse>
|
||||
EOF
|
||||
chown clickhouse:clickhouse /etc/clickhouse-server/users.d/langfuse.xml
|
||||
chmod 600 /etc/clickhouse-server/users.d/langfuse.xml
|
||||
cat <<EOF >/etc/clickhouse-server/config.d/langfuse.xml
|
||||
<clickhouse>
|
||||
<listen_host replace="replace">127.0.0.1</listen_host>
|
||||
<timezone>UTC</timezone>
|
||||
</clickhouse>
|
||||
EOF
|
||||
cat <<EOF >/opt/langfuse_data/s3.json
|
||||
{
|
||||
"identities": [
|
||||
{
|
||||
"name": "langfuse",
|
||||
"credentials": [{"accessKey": "langfuse", "secretKey": "${S3_SECRET}"}],
|
||||
"actions": ["Admin", "Read", "Write", "List", "Tagging"]
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
chmod 600 /opt/langfuse_data/s3.json
|
||||
msg_ok "Configured Langfuse"
|
||||
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/systemd/system/langfuse-storage.service
|
||||
[Unit]
|
||||
Description=Langfuse S3 Storage (SeaweedFS)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/langfuse_data/storage
|
||||
ExecStart=/opt/seaweedfs/weed server -dir=/opt/langfuse_data/storage -ip=127.0.0.1 -ip.bind=127.0.0.1 -s3 -s3.port=8333 -s3.port.iceberg=0 -s3.port.lance=0 -s3.config=/opt/langfuse_data/s3.json -master.telemetry=false
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/langfuse-migrate.service
|
||||
[Unit]
|
||||
Description=Langfuse Database Migrations
|
||||
After=network.target postgresql.service clickhouse-server.service redis-server.service langfuse-storage.service
|
||||
Wants=postgresql.service clickhouse-server.service redis-server.service langfuse-storage.service
|
||||
Before=langfuse-web.service langfuse-worker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/langfuse
|
||||
EnvironmentFile=/opt/langfuse_data/.env
|
||||
ExecStart=/usr/bin/pnpm --filter @langfuse/shared exec prisma db execute --schema=./prisma/schema.prisma --file=./scripts/cleanup.sql
|
||||
ExecStart=/usr/bin/pnpm --filter @langfuse/shared exec prisma migrate deploy --schema=./prisma/schema.prisma
|
||||
ExecStart=/bin/sh /opt/langfuse/packages/shared/clickhouse/scripts/up.sh
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=1800
|
||||
UMask=0077
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/langfuse-web.service
|
||||
[Unit]
|
||||
Description=Langfuse Web
|
||||
After=network.target langfuse-migrate.service
|
||||
Requires=langfuse-migrate.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/langfuse
|
||||
EnvironmentFile=/opt/langfuse_data/.env
|
||||
Environment=HOSTNAME=0.0.0.0
|
||||
Environment=PORT=3000
|
||||
ExecStart=/usr/bin/node /opt/langfuse/web/.next/standalone/web/server.js
|
||||
SuccessExitStatus=143
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/langfuse-worker.service
|
||||
[Unit]
|
||||
Description=Langfuse Worker
|
||||
After=network.target langfuse-migrate.service
|
||||
Requires=langfuse-migrate.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/langfuse
|
||||
EnvironmentFile=/opt/langfuse_data/.env
|
||||
Environment=HOSTNAME=127.0.0.1
|
||||
Environment=PORT=3030
|
||||
ExecStart=/usr/bin/node /opt/langfuse/worker/dist/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
UMask=0077
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl restart redis-server clickhouse-server
|
||||
systemctl enable -q --now langfuse-storage
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:9333/cluster/status
|
||||
$STD /opt/seaweedfs/weed shell -master=127.0.0.1:9333 <<<"s3.bucket.create -name langfuse"
|
||||
$STD curl --config - --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:8333/langfuse <<EOF
|
||||
aws-sigv4 = "aws:amz:us-east-1:s3"
|
||||
user = "langfuse:${S3_SECRET}"
|
||||
EOF
|
||||
systemctl enable -q --now langfuse-web langfuse-worker
|
||||
$STD curl --retry 60 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3000/api/public/ready
|
||||
$STD curl --retry 30 --retry-delay 2 --retry-connrefused -fsS http://127.0.0.1:3030/api/health
|
||||
msg_ok "Created Services"
|
||||
|
||||
msg_info "Saving Credentials"
|
||||
sed -i '/^LANGFUSE_INIT_/d' /opt/langfuse_data/.env
|
||||
cat <<EOF >>~/langfuse.creds
|
||||
|
||||
Langfuse Admin
|
||||
Email: ${var_admin_email}
|
||||
Password: ${var_admin_pass}
|
||||
|
||||
Langfuse API Keys (project Default)
|
||||
Public Key: ${PUBLIC_KEY}
|
||||
Secret Key: ${SECRET_KEY}
|
||||
EOF
|
||||
chmod 600 ~/langfuse.creds
|
||||
msg_ok "Saved Credentials"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -19,7 +19,7 @@ msg_ok "Installed Dependencies"
|
||||
|
||||
mkdir -p /opt/matomo
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="pdo_mysql,gd,mbstring,xml,curl,intl,zip,ldap" setup_php
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULES="pdo_mysql,gd,mbstring,xml,curl,intl,zip,ldap" setup_php
|
||||
setup_mariadb
|
||||
MARIADB_DB_NAME="matomo" MARIADB_DB_USER="matomo" setup_mariadb_db
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ PANGOLIN_ENDPOINT="${PANGOLIN_ENDPOINT:-${var_newt_endpoint:-}}"
|
||||
|
||||
if [[ -z "$NEWT_ID" || -z "$NEWT_SECRET" || -z "$PANGOLIN_ENDPOINT" ]]; then
|
||||
msg_error "Newt ID, Secret and Endpoint are all required. Aborting."
|
||||
exit 64
|
||||
exit 1
|
||||
fi
|
||||
|
||||
msg_info "Configuring Newt"
|
||||
|
||||
@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y caddy
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="bcmath,gd,intl,xml,zip,pdo_pgsql,redis,mbstring,curl" setup_php
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULES="bcmath,gd,intl,xml,zip,pdo_pgsql,redis,mbstring,curl" setup_php
|
||||
setup_composer
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
PG_VERSION="16" setup_postgresql
|
||||
|
||||
@@ -20,7 +20,7 @@ $STD apt install -y \
|
||||
nginx
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PYTHON_VERSION="3.15" setup_uv
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
PG_VERSION="17" setup_postgresql
|
||||
|
||||
msg_info "Setup PostgreSQL"
|
||||
@@ -68,9 +68,6 @@ sed -i \
|
||||
-e "s|alias /var/www/html/locales/;|alias /opt/warracker/locales/;|" \
|
||||
-e "s|/var/www/html|/opt/warracker/frontend|g" \
|
||||
-e "s/client_max_body_size __NGINX_MAX_BODY_SIZE_CONFIG_VALUE__/client_max_body_size 32M/" \
|
||||
-e "s|error_log /dev/stderr|error_log /var/log/nginx/error.log|" \
|
||||
-e "s|__NGINX_TRUST_ALL_PROXIES__|0|g" \
|
||||
-e "s|__NGINX_TRUST_PRIVATE_PROXIES__|1|g" \
|
||||
/etc/nginx/sites-available/warracker.conf
|
||||
nginx_enable_site warracker.conf
|
||||
msg_ok "Configured Nginx"
|
||||
|
||||
@@ -19,7 +19,7 @@ $STD apt install -y \
|
||||
unzip
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="bcmath,gd,intl,xml,zip,pdo_mysql,mbstring,curl" setup_php
|
||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULES="bcmath,gd,intl,xml,zip,pdo_mysql,mbstring,curl" setup_php
|
||||
setup_mariadb
|
||||
MARIADB_DB_NAME="webtrees" MARIADB_DB_USER="webtrees" setup_mariadb_db
|
||||
$STD mariadb -u root -e "GRANT ALL ON \`webtrees\`.* TO 'webtrees'@'127.0.0.1' IDENTIFIED BY '${MARIADB_DB_PASS}'; FLUSH PRIVILEGES;"
|
||||
|
||||
@@ -161,11 +161,6 @@ if [ "${#failed_containers[@]}" -gt 0 ]; then
|
||||
[ -s "$RUN_LOG" ] && echo -e "Their output: $RUN_LOG\n"
|
||||
printf -v CS_ERROR_MSG '%s; ' "${failed_containers[@]}"
|
||||
CS_ERROR_MSG="Cleaning failed in ${#failed_containers[@]} container(s): ${CS_ERROR_MSG%; }"
|
||||
# One code shared by every failed container is the real one (100 is apt), not "1".
|
||||
codes=$(printf '%s\n' "${failed_containers[@]}" | sed -n 's/^[^:]*: cleaning exited with \([0-9]*\).*/\1/p')
|
||||
if [[ -n "$codes" && $(wc -l <<<"$codes") -eq ${#failed_containers[@]} && $(sort -u <<<"$codes" | wc -l) -eq 1 ]]; then
|
||||
exit "$(head -n1 <<<"$codes")"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
echo -e "${GN} Finished, Selected Containers Cleaned. ${CL} \n"
|
||||
@@ -88,11 +88,6 @@ main() {
|
||||
esac
|
||||
done
|
||||
|
||||
if ! command -v pveversion >/dev/null 2>&1; then
|
||||
msg_error "This script runs on a Proxmox VE host, and pveversion is missing here"
|
||||
exit 105
|
||||
fi
|
||||
|
||||
local PVE_VERSION PVE_MAJOR PVE_MINOR
|
||||
PVE_VERSION="$(get_pve_version)"
|
||||
read -r PVE_MAJOR PVE_MINOR <<<"$(get_pve_major_minor "$PVE_VERSION")"
|
||||
|
||||
@@ -620,7 +620,6 @@ for container in $CHOICE; do
|
||||
fi
|
||||
|
||||
#4) Update service, using the update command
|
||||
pct exec "$container" -- touch /tmp/.cs-update-start 2>/dev/null || true
|
||||
# Prepend a no-op 'clear' wrapper to PATH so update scripts calling clear
|
||||
# don't fail without a TTY — works for all shells incl. ash (no export -f)
|
||||
SETUP_CMD="mkdir -p /tmp/.nc; printf '#!/bin/sh\n:\n' > /tmp/.nc/clear; chmod +x /tmp/.nc/clear; export PATH=/tmp/.nc:\$PATH; export TERM=dumb; "
|
||||
@@ -632,12 +631,6 @@ for container in $CHOICE; do
|
||||
opensuse) pct exec "$container" -- bash -c "${SETUP_CMD}${UPDATE_CMD}" ;;
|
||||
esac
|
||||
exit_code=$?
|
||||
# The engine in the container leaves what failed in an .errinfo file; without it
|
||||
# the report says only "exit code: 1".
|
||||
update_detail=""
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
update_detail=$(pct exec "$container" -- sh -c 'f=$(find /root /tmp -maxdepth 1 -name "*.errinfo" -newer /tmp/.cs-update-start 2>/dev/null | head -n1); [ -n "$f" ] || exit 0; m=$(sed -n "s/^MESSAGE=//p" "$f" | head -n1); [ -n "$m" ] || m=$(sed -n "s/^COMMAND=//p" "$f" | head -n1); printf "%s" "$m" | head -c 200' 2>/dev/null || true)
|
||||
fi
|
||||
|
||||
#5) if build resources are different than run resources, then:
|
||||
if [ "$UPDATE_BUILD_RESOURCES" -eq "1" ]; then
|
||||
@@ -672,7 +665,7 @@ for container in $CHOICE; do
|
||||
log_result "$container" "$service" "SKIPPED" "Storage critically low on /boot (>80%)"
|
||||
log_write "Container $container ($service): SKIPPED — storage critically low on /boot"
|
||||
elif [ "$BACKUP_CHOICE" == "yes" ]; then
|
||||
msg_error "Update failed for container $container ($service, exit code: $exit_code)${update_detail:+: $update_detail} — attempting restore"
|
||||
msg_error "Update failed for container $container ($service, exit code: $exit_code) — attempting restore"
|
||||
log_write "Container $container ($service): FAILED (exit $exit_code) — attempting restore"
|
||||
msg_info "Restoring LXC $container from backup ($STORAGE_CHOICE)"
|
||||
wait
|
||||
@@ -710,8 +703,8 @@ for container in $CHOICE; do
|
||||
exit 235
|
||||
fi
|
||||
else
|
||||
msg_error "Update failed for container $container ($service, exit code: $exit_code)${update_detail:+: $update_detail}"
|
||||
log_result "$container" "$service" "FAILED" "Exit code $exit_code${update_detail:+: $update_detail}"
|
||||
msg_error "Update failed for container $container ($service, exit code: $exit_code)"
|
||||
log_result "$container" "$service" "FAILED" "Exit code $exit_code"
|
||||
log_write "Container $container ($service): FAILED (exit $exit_code)"
|
||||
if [[ "$var_continue_on_error" == "yes" ]]; then
|
||||
echo -e "${YW}[WARN]${CL} Continuing to next container (var_continue_on_error=yes)"
|
||||
|
||||
@@ -174,10 +174,5 @@ echo ""
|
||||
if [ "${#failed_containers[@]}" -gt 0 ]; then
|
||||
printf -v CS_ERROR_MSG '%s; ' "${failed_containers[@]}"
|
||||
CS_ERROR_MSG="Update failed in ${#failed_containers[@]} container(s): ${CS_ERROR_MSG%; }"
|
||||
# One code shared by every failed container is the real one (100 is apt), not "1".
|
||||
codes=$(printf '%s\n' "${failed_containers[@]}" | sed -n 's/^[^:]*: update exited with \([0-9]*\).*/\1/p')
|
||||
if [[ -n "$codes" && $(wc -l <<<"$codes") -eq ${#failed_containers[@]} && $(sort -u <<<"$codes" | wc -l) -eq 1 ]]; then
|
||||
exit "$(head -n1 <<<"$codes")"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user