mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-19 14:01:21 +02:00
Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cd33d76bb3 | |||
| 6275928a81 | |||
| 3465170234 | |||
| d8640aeb4c | |||
| e9b6af3531 | |||
| ca95941cd9 | |||
| 05823c3cb5 | |||
| a5398b742c | |||
| 3d7fd049fa | |||
| 4b80e0db29 | |||
| 5169c61968 | |||
| 1d8518b305 | |||
| 04e6933b3b | |||
| 00fe32dc3c | |||
| 59a389fb2d | |||
| d42fd9893e | |||
| 4556d40b07 | |||
| 49b7de22c3 | |||
| 2112e2793e | |||
| 2e8ff7a6c5 | |||
| 4d4e1d7654 | |||
| 6b25e35ecf | |||
| 6c23883d94 | |||
| e08719ac3f | |||
| 0683d4942c | |||
| b0896dbdeb | |||
| f1ee2a2b91 | |||
| 691ce33090 | |||
| 5f5881c757 | |||
| af7e83300f |
+50
-1
@@ -483,11 +483,60 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## 2026-06-18
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- flowise: add deps / uv / python 3.11 [@MickLesk](https://github.com/MickLesk) ([#15177](https://github.com/community-scripts/ProxmoxVE/pull/15177))
|
||||||
|
|
||||||
|
- #### 💥 Breaking Changes
|
||||||
|
|
||||||
|
- refactor: crafty-controller [@CrazyWolf13](https://github.com/CrazyWolf13) ([#15178](https://github.com/community-scripts/ProxmoxVE/pull/15178))
|
||||||
|
|
||||||
|
## 2026-06-17
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- kasm: fix release detection [@CrazyWolf13](https://github.com/CrazyWolf13) ([#15151](https://github.com/community-scripts/ProxmoxVE/pull/15151))
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- trek: update install and upgrade workflow for v3.1.0 [@MickLesk](https://github.com/MickLesk) ([#15165](https://github.com/community-scripts/ProxmoxVE/pull/15165))
|
||||||
|
|
||||||
|
- #### 💥 Breaking Changes
|
||||||
|
|
||||||
|
- TREK: Pin version [@tremor021](https://github.com/tremor021) ([#15156](https://github.com/community-scripts/ProxmoxVE/pull/15156))
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- chore(paperless-ngx): pin version to prevent v3 update [@tomfrenzel](https://github.com/tomfrenzel) ([#15171](https://github.com/community-scripts/ProxmoxVE/pull/15171))
|
||||||
|
|
||||||
|
### 🧰 Tools
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- immich public proxy: replace npm install with npm ci for consistent dependency installation [@MickLesk](https://github.com/MickLesk) ([#15166](https://github.com/community-scripts/ProxmoxVE/pull/15166))
|
||||||
|
|
||||||
## 2026-06-16
|
## 2026-06-16
|
||||||
|
|
||||||
### 🆕 New Scripts
|
### 🆕 New Scripts
|
||||||
|
|
||||||
- Add runtime status guard and deleted script stubs [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#15125](https://github.com/community-scripts/ProxmoxVE/pull/15125))
|
- Feishin ([#15130](https://github.com/community-scripts/ProxmoxVE/pull/15130))
|
||||||
|
- Kiwix ([#15131](https://github.com/community-scripts/ProxmoxVE/pull/15131))
|
||||||
|
- Add runtime status guard and deleted script stubs [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#15125](https://github.com/community-scripts/ProxmoxVE/pull/15125))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- fix(degoog): use localhost for valkey url [@ethan-hgwr](https://github.com/ethan-hgwr) ([#15149](https://github.com/community-scripts/ProxmoxVE/pull/15149))
|
||||||
|
- Fix InvoiceShelf install/update Yarn package manager mismatch [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#15141](https://github.com/community-scripts/ProxmoxVE/pull/15141))
|
||||||
|
- fix storyteller install failure with yarn 4 corepack [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#15140](https://github.com/community-scripts/ProxmoxVE/pull/15140))
|
||||||
|
- fix: generate policy-compliant OpenObserve root password [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#15137](https://github.com/community-scripts/ProxmoxVE/pull/15137))
|
||||||
|
|
||||||
## 2026-06-15
|
## 2026-06-15
|
||||||
|
|
||||||
|
|||||||
@@ -149,6 +149,12 @@ This project runs on community contributions. Whether you want to write new scri
|
|||||||
<sub><b>vhsdream</b></sub>
|
<sub><b>vhsdream</b></sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td align="center">
|
||||||
|
<a href="https://github.com/asylumexp">
|
||||||
|
<img src="https://github.com/asylumexp.png" width="80" height="80" style="border-radius:50%" alt="asylumexp" /><br/>
|
||||||
|
<sub><b>asylumexp</b></sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
+18
-23
@@ -29,42 +29,37 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE=$(curl -fsSL "https://gitlab.com/api/v4/projects/20430749/releases" | grep -o '"tag_name":"v[^"]*"' | head -n 1 | sed 's/"tag_name":"v//;s/"//')
|
if check_for_gl_release "Crafty-Controller" "crafty-controller/crafty-4"; then
|
||||||
if [[ ! -f /opt/crafty-controller_version.txt ]] || [[ ${RELEASE} != "$(cat /opt/crafty-controller_version.txt)" ]]; then
|
|
||||||
|
|
||||||
msg_info "Stopping Crafty-Controller"
|
msg_info "Stopping Crafty-Controller"
|
||||||
systemctl stop crafty-controller
|
systemctl stop crafty-controller
|
||||||
msg_ok "Stopped Crafty-Controller"
|
msg_ok "Stopped Crafty-Controller"
|
||||||
|
|
||||||
create_backup /opt/crafty-controller/crafty/crafty-4/app/config/version.json \
|
create_backup \
|
||||||
/opt/crafty-controller/crafty/crafty-4/app/config/credits.json \
|
"/opt/crafty-controller/crafty/crafty-4/app/config/db" \
|
||||||
/opt/crafty-controller/crafty/crafty-4/app/config/logging.json \
|
"/opt/crafty-controller/crafty/crafty-4/app/config/config.json" \
|
||||||
/opt/crafty-controller/crafty/crafty-4/app/config/default.json.example \
|
"/opt/crafty-controller/crafty/crafty-4/app/config/web" \
|
||||||
/opt/crafty-controller/crafty/crafty-4/app/config/motd_format.json
|
"/opt/crafty-controller/crafty/crafty-4/servers" \
|
||||||
|
"/opt/crafty-controller/crafty/crafty-4/backups" \
|
||||||
|
"/opt/crafty-controller/crafty/crafty-4/import"
|
||||||
|
|
||||||
msg_info "Updating Crafty-Controller to v${RELEASE}"
|
CLEAN_INSTALL=1 fetch_and_deploy_gl_release "Crafty-Controller" "crafty-controller/crafty-4" "tarball" "latest" "/opt/crafty-controller/crafty/crafty-4"
|
||||||
curl -fsSL "https://gitlab.com/crafty-controller/crafty-4/-/archive/v${RELEASE}/crafty-4-v${RELEASE}.zip" -o $(basename "https://gitlab.com/crafty-controller/crafty-4/-/archive/v${RELEASE}/crafty-4-v${RELEASE}.zip")
|
|
||||||
$STD unzip crafty-4-v"${RELEASE}".zip
|
|
||||||
cp -a crafty-4-v"${RELEASE}"/. /opt/crafty-controller/crafty/crafty-4/
|
|
||||||
rm -rf crafty-4-v"${RELEASE}"
|
|
||||||
cd /opt/crafty-controller/crafty/crafty-4
|
|
||||||
sudo -u crafty bash -c '
|
|
||||||
source /opt/crafty-controller/crafty/.venv/bin/activate
|
|
||||||
pip3 install --no-cache-dir -r requirements.txt
|
|
||||||
' &>/dev/null
|
|
||||||
echo "${RELEASE}" >"/opt/crafty-controller_version.txt"
|
|
||||||
msg_ok "Updated Crafty-Controller to v${RELEASE}"
|
|
||||||
|
|
||||||
restore_backup
|
restore_backup
|
||||||
chown -R crafty:crafty /opt/crafty-controller/
|
|
||||||
|
msg_info "Updating Python dependencies"
|
||||||
|
chown -R crafty:crafty /opt/crafty-controller
|
||||||
|
cd /opt/crafty-controller/crafty/crafty-4
|
||||||
|
$STD sudo -u crafty bash -c '
|
||||||
|
source /opt/crafty-controller/crafty/.venv/bin/activate
|
||||||
|
pip3 install --no-cache-dir -r requirements.txt
|
||||||
|
'
|
||||||
|
msg_ok "Updated Python dependencies"
|
||||||
|
|
||||||
msg_info "Starting Crafty-Controller"
|
msg_info "Starting Crafty-Controller"
|
||||||
systemctl start crafty-controller
|
systemctl start crafty-controller
|
||||||
msg_ok "Started Crafty-Controller"
|
msg_ok "Started Crafty-Controller"
|
||||||
|
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
else
|
|
||||||
msg_ok "No update required. ${APP} is already at v${RELEASE}"
|
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,77 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: MickLesk (CanbiZ)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/jeffvli/feishin
|
||||||
|
|
||||||
|
APP="Feishin"
|
||||||
|
var_tags="${var_tags:-music;player;streaming}"
|
||||||
|
var_cpu="${var_cpu:-2}"
|
||||||
|
var_ram="${var_ram:-4096}"
|
||||||
|
var_disk="${var_disk:-8}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_arm64="${var_arm64:-no}"
|
||||||
|
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/feishin ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "feishin" "jeffvli/feishin"; then
|
||||||
|
create_backup /opt/feishin/.env
|
||||||
|
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "feishin" "jeffvli/feishin" "tarball"
|
||||||
|
|
||||||
|
msg_info "Rebuilding Feishin Web"
|
||||||
|
cd /opt/feishin
|
||||||
|
#PNPM_VERSION=$(jq -r '.packageManager | ltrimstr("pnpm@")' /opt/feishin/package.json)
|
||||||
|
$STD corepack enable
|
||||||
|
$STD corepack prepare "pnpm@10" --activate
|
||||||
|
$STD pnpm install
|
||||||
|
$STD pnpm run build:web
|
||||||
|
msg_ok "Rebuilt Feishin Web"
|
||||||
|
|
||||||
|
restore_backup
|
||||||
|
|
||||||
|
msg_info "Publishing Web Assets"
|
||||||
|
rm -rf /usr/share/nginx/html
|
||||||
|
mkdir -p /usr/share/nginx/html
|
||||||
|
cp -r /opt/feishin/out/web/. /usr/share/nginx/html/
|
||||||
|
|
||||||
|
set -a
|
||||||
|
source /opt/feishin/.env
|
||||||
|
set +a
|
||||||
|
|
||||||
|
envsubst </opt/feishin/settings.js.template >/etc/nginx/conf.d/settings.js
|
||||||
|
envsubst '${PUBLIC_PATH}' </opt/feishin/ng.conf.template >/etc/nginx/sites-available/feishin
|
||||||
|
ln -sf /etc/nginx/sites-available/feishin /etc/nginx/sites-enabled/feishin
|
||||||
|
rm -f /etc/nginx/sites-enabled/default
|
||||||
|
systemctl restart nginx
|
||||||
|
msg_ok "Published Web Assets"
|
||||||
|
|
||||||
|
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 "${TAB}${GATEWAY}${BGN}http://${IP}:9180${CL}"
|
||||||
+1
-1
@@ -29,7 +29,7 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs
|
||||||
|
|
||||||
msg_info "Updating FlowiseAI (this may take some time)"
|
msg_info "Updating FlowiseAI (this may take some time)"
|
||||||
systemctl stop flowise
|
systemctl stop flowise
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
____ __ __
|
||||||
|
/ __ )____ ____ / /__/ / ____ ________
|
||||||
|
/ __ / __ \/ __ \/ //_/ / / __ \/ ___/ _ \
|
||||||
|
/ /_/ / /_/ / /_/ / ,< / /___/ /_/ / / / __/
|
||||||
|
/_____/\____/\____/_/|_/_____/\____/_/ \___/
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
______ _ __ _
|
||||||
|
/ ____/__ (_)____/ /_ (_)___
|
||||||
|
/ /_ / _ \/ / ___/ __ \/ / __ \
|
||||||
|
/ __/ / __/ (__ ) / / / / / / /
|
||||||
|
/_/ \___/_/____/_/ /_/_/_/ /_/
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
__ __ _ _
|
||||||
|
/ //_/(_) __(_) __
|
||||||
|
/ ,< / / | /| / / / |/_/
|
||||||
|
/ /| |/ /| |/ |/ / /> <
|
||||||
|
/_/ |_/_/ |__/|__/_/_/|_|
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
__ _ __ __ __ __ ___
|
||||||
|
/ / (_) /____ / / / / / |/ /
|
||||||
|
/ / / / __/ _ \/ / / / / /|_/ /
|
||||||
|
/ /___/ / /_/ __/ /___/ /___/ / / /
|
||||||
|
/_____/_/\__/\___/_____/_____/_/ /_/
|
||||||
|
|
||||||
+8
-2
@@ -52,8 +52,14 @@ function update_script() {
|
|||||||
msg_info "Updating Application"
|
msg_info "Updating Application"
|
||||||
cd /opt/invoiceshelf
|
cd /opt/invoiceshelf
|
||||||
$STD composer install --no-dev --optimize-autoloader
|
$STD composer install --no-dev --optimize-autoloader
|
||||||
$STD yarn install
|
if command -v corepack >/dev/null 2>&1; then
|
||||||
$STD yarn build
|
$STD corepack enable
|
||||||
|
$STD corepack yarn install
|
||||||
|
$STD corepack yarn build
|
||||||
|
else
|
||||||
|
$STD yarn install
|
||||||
|
$STD yarn build
|
||||||
|
fi
|
||||||
$STD php artisan migrate --force
|
$STD php artisan migrate --force
|
||||||
$STD php artisan optimize:clear
|
$STD php artisan optimize:clear
|
||||||
chown -R www-data:www-data /opt/invoiceshelf
|
chown -R www-data:www-data /opt/invoiceshelf
|
||||||
|
|||||||
+13
-14
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: Omar Minaya
|
# Author: CrazyWolf13
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://www.kasmweb.com/docs/latest/index.html
|
# Source: https://www.kasmweb.com/docs/latest/index.html
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ var_arm64="${var_arm64:-yes}"
|
|||||||
var_unprivileged="${var_unprivileged:-0}"
|
var_unprivileged="${var_unprivileged:-0}"
|
||||||
var_fuse="${var_fuse:-yes}"
|
var_fuse="${var_fuse:-yes}"
|
||||||
var_tun="${var_tun:-yes}"
|
var_tun="${var_tun:-yes}"
|
||||||
var_kasm_version="${var_kasm_version:-}"
|
var_kasm_version="${var_kasm_version:-1.19.0}"
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
@@ -34,19 +34,18 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Checking for new version"
|
msg_info "Checking for new version"
|
||||||
CURRENT_VERSION=$(readlink -f /opt/kasm/current | awk -F'/' '{print $4}')
|
CURRENT_VERSION=$(readlink -f /opt/kasm/current | awk -F'/' '{print $4}')
|
||||||
KASM_VERSION=$(curl -s https://kasm.com/downloads | grep -oP '<h1[^>]*>.*?</h1>' | sed -E 's/<\/?h1[^>]*>//g' | grep -oP '\d+\.\d+\.\d+')
|
KASM_URL=$(curl -s https://kasm.com/downloads \
|
||||||
KASM_URL="https://kasm-static-content.s3.amazonaws.com/kasm_release_${KASM_VERSION:-var_kasm_version}.tar.gz"
|
| grep -oP 'https://kasm-static-content\.s3\.amazonaws\.com/kasm_release_\d+\.\d+\.\d+-latest\.tar\.gz' \
|
||||||
|
| head -1)
|
||||||
|
KASM_VERSION=$(echo "$KASM_URL" | grep -oP '\d+\.\d+\.\d+(?=-latest)')
|
||||||
|
|
||||||
# KASM_URL=$(curl -fsSL "https://www.kasm.com/downloads" | tr '\n' ' ' | grep -oE 'https://kasm-static-content[^"]*kasm_release_[0-9]+\.[0-9]+\.[0-9]+\.[a-z0-9]+\.tar\.gz' | head -n 1)
|
# Fallback to predefined version if online lookup failed.
|
||||||
# if [[ -z "$KASM_URL" ]]; then
|
if [[ -z "$KASM_VERSION" ]] || [[ -z "$KASM_URL" ]]; then
|
||||||
# SERVICE_IMAGE_URL=$(curl -fsSL "https://www.kasm.com/downloads" | tr '\n' ' ' | grep -oE 'https://kasm-static-content[^"]*kasm_release_service_images_amd64_[0-9]+\.[0-9]+\.[0-9]+\.tar\.gz' | head -n 1)
|
msg_warn "Unable to fetch latest Kasm release online, falling back to v${var_kasm_version}"
|
||||||
# if [[ -n "$SERVICE_IMAGE_URL" ]]; then
|
fi
|
||||||
# KASM_VERSION=$(echo "$SERVICE_IMAGE_URL" | sed -E 's/.*kasm_release_service_images_amd64_([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
|
||||||
# KASM_URL="https://kasm-static-content.s3.amazonaws.com/kasm_release_${KASM_VERSION}.tar.gz"
|
KASM_VERSION="${KASM_VERSION:-$var_kasm_version}"
|
||||||
# fi
|
KASM_URL="${KASM_URL:-https://kasm-static-content.s3.amazonaws.com/kasm_release_${KASM_VERSION}-latest.tar.gz}"
|
||||||
# else
|
|
||||||
# KASM_VERSION=$(echo "$KASM_URL" | sed -E 's/.*kasm_release_([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
|
||||||
# fi
|
|
||||||
|
|
||||||
if [[ -z "$KASM_VERSION" ]] || [[ -z "$KASM_URL" ]]; then
|
if [[ -z "$KASM_VERSION" ]] || [[ -z "$KASM_URL" ]]; then
|
||||||
msg_error "Unable to detect latest Kasm release URL."
|
msg_error "Unable to detect latest Kasm release URL."
|
||||||
|
|||||||
+75
@@ -0,0 +1,75 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: MickLesk
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/kiwix/kiwix-tools
|
||||||
|
|
||||||
|
APP="Kiwix"
|
||||||
|
var_tags="${var_tags:-documentation;offline}"
|
||||||
|
var_cpu="${var_cpu:-1}"
|
||||||
|
var_ram="${var_ram:-512}"
|
||||||
|
var_disk="${var_disk:-4}"
|
||||||
|
var_os="${var_os:-ubuntu}"
|
||||||
|
var_version="${var_version:-24.04}"
|
||||||
|
var_arm64="${var_arm64:-no}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
|
||||||
|
if ! dpkg -s kiwix-tools &>/dev/null; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
CURRENT=$(dpkg-query -W -f='${Version}' kiwix-tools 2>/dev/null)
|
||||||
|
|
||||||
|
msg_info "Updating Package Index"
|
||||||
|
$STD apt update
|
||||||
|
msg_ok "Updated Package Index"
|
||||||
|
|
||||||
|
CANDIDATE=$(apt-cache policy kiwix-tools | awk '/Candidate:/{print $2}')
|
||||||
|
if [[ -z "$CANDIDATE" || "$CANDIDATE" == "(none)" ]]; then
|
||||||
|
msg_error "No Candidate Version Found for kiwix-tools"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$CURRENT" == "$CANDIDATE" ]]; then
|
||||||
|
echo "${CURRENT}" >/root/.kiwix
|
||||||
|
msg_ok "Already on latest version: ${CURRENT}"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop kiwix-serve
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
msg_info "Updating Kiwix-Tools"
|
||||||
|
$STD apt install -y --only-upgrade kiwix-tools
|
||||||
|
RELEASE=$(dpkg-query -W -f='${Version}' kiwix-tools 2>/dev/null)
|
||||||
|
echo "${RELEASE}" >/root/.kiwix
|
||||||
|
msg_ok "Updated Kiwix-Tools"
|
||||||
|
msg_ok "Updated successfully from ${CURRENT} to ${RELEASE}!"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start kiwix-serve
|
||||||
|
msg_ok "Started Service"
|
||||||
|
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 "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"
|
||||||
+4
-3
@@ -49,7 +49,8 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if check_for_gh_release "paperless" "paperless-ngx/paperless-ngx"; then
|
RELEASE="v2.20.15"
|
||||||
|
if check_for_gh_release "paperless" "paperless-ngx/paperless-ngx" "${RELEASE}" "v3 needs further testing"; then
|
||||||
msg_info "Stopping all Paperless-ngx Services"
|
msg_info "Stopping all Paperless-ngx Services"
|
||||||
systemctl stop paperless-consumer paperless-webserver paperless-scheduler paperless-task-queue
|
systemctl stop paperless-consumer paperless-webserver paperless-scheduler paperless-task-queue
|
||||||
msg_ok "Stopped all Paperless-ngx Services"
|
msg_ok "Stopped all Paperless-ngx Services"
|
||||||
@@ -63,7 +64,7 @@ function update_script() {
|
|||||||
msg_ok "Backup completed to $BACKUP_DIR"
|
msg_ok "Backup completed to $BACKUP_DIR"
|
||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "${RELEASE}" "/opt/paperless" "paperless*tar.xz"
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jbig2enc" "ie13/jbig2enc" "tarball" "latest" "/opt/jbig2enc"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jbig2enc" "ie13/jbig2enc" "tarball" "latest" "/opt/jbig2enc"
|
||||||
|
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
@@ -138,7 +139,7 @@ function update_script() {
|
|||||||
msg_ok "Backup completed to $BACKUP_DIR"
|
msg_ok "Backup completed to $BACKUP_DIR"
|
||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "${RELEASE}" "/opt/paperless" "paperless*tar.xz"
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jbig2enc" "ie13/jbig2enc" "tarball" "latest" "/opt/jbig2enc"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "jbig2enc" "ie13/jbig2enc" "tarball" "latest" "/opt/jbig2enc"
|
||||||
|
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
|||||||
+3
-2
@@ -48,13 +48,14 @@ function update_script() {
|
|||||||
msg_info "Rebuilding Storyteller"
|
msg_info "Rebuilding Storyteller"
|
||||||
cd /opt/storyteller
|
cd /opt/storyteller
|
||||||
export NODE_OPTIONS="--max-old-space-size=4096"
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
$STD yarn install --network-timeout 600000
|
$STD corepack enable
|
||||||
|
$STD corepack yarn install --network-timeout 600000
|
||||||
$STD gcc -g -fPIC -rdynamic -shared web/sqlite/uuid.c -o web/sqlite/uuid.c.so
|
$STD gcc -g -fPIC -rdynamic -shared web/sqlite/uuid.c -o web/sqlite/uuid.c.so
|
||||||
export CI=1
|
export CI=1
|
||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
export NEXT_TELEMETRY_DISABLED=1
|
export NEXT_TELEMETRY_DISABLED=1
|
||||||
export SQLITE_NATIVE_BINDING=/opt/storyteller/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
export SQLITE_NATIVE_BINDING=/opt/storyteller/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
||||||
$STD yarn workspaces foreach -Rpt --from @storyteller-platform/web --exclude @storyteller-platform/eslint run build
|
$STD corepack yarn workspaces foreach -Rpt --from @storyteller-platform/web --exclude @storyteller-platform/eslint run build
|
||||||
mkdir -p /opt/storyteller/web/.next/standalone/web/.next/static
|
mkdir -p /opt/storyteller/web/.next/standalone/web/.next/static
|
||||||
cp -rT /opt/storyteller/web/.next/static /opt/storyteller/web/.next/standalone/web/.next/static
|
cp -rT /opt/storyteller/web/.next/static /opt/storyteller/web/.next/standalone/web/.next/static
|
||||||
if [[ -d /opt/storyteller/web/public ]]; then
|
if [[ -d /opt/storyteller/web/public ]]; then
|
||||||
|
|||||||
+55
-22
@@ -33,47 +33,80 @@ function update_script() {
|
|||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
if check_for_gh_release "trek" "mauriceboe/TREK"; then
|
if check_for_gh_release "trek" "mauriceboe/TREK"; then
|
||||||
|
MIGRATION=0
|
||||||
|
grep -qF "ExecStart=/usr/bin/node --import tsx src/index.ts" \
|
||||||
|
/etc/systemd/system/trek.service && MIGRATION=1
|
||||||
|
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop trek
|
systemctl stop trek
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
msg_info "Backing up Data"
|
ensure_dependencies "libkitinerary-bin"
|
||||||
cp /opt/trek/server/.env /opt/trek.env.bak
|
|
||||||
mv /opt/trek/data /opt/trek-data.bak
|
create_backup /opt/trek/server/.env \
|
||||||
mv /opt/trek/uploads /opt/trek-uploads.bak
|
/opt/trek/data \
|
||||||
msg_ok "Backed up Data"
|
/opt/trek/uploads
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "trek" "mauriceboe/TREK" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "trek" "mauriceboe/TREK" "tarball"
|
||||||
|
|
||||||
msg_info "Building Client"
|
msg_info "Building TREK"
|
||||||
cd /opt/trek/client
|
cd /opt/trek
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
$STD npm run build
|
$STD npm run build --workspace=shared
|
||||||
mkdir -p /opt/trek/server/public
|
$STD npm run build --workspace=client
|
||||||
cp -r /opt/trek/client/dist/* /opt/trek/server/public/
|
$STD npm run build --workspace=server
|
||||||
cp -r /opt/trek/client/public/fonts /opt/trek/server/public/fonts 2>/dev/null || true
|
msg_ok "Built TREK"
|
||||||
msg_ok "Built Client"
|
|
||||||
|
|
||||||
msg_info "Installing Server Dependencies"
|
msg_info "Setting up TREK Workspace"
|
||||||
cd /opt/trek/server
|
rm -rf /opt/trek/server/public
|
||||||
$STD npm ci
|
mkdir -p /opt/trek/server/public/fonts
|
||||||
msg_ok "Installed Server Dependencies"
|
cp -a /opt/trek/client/dist/. /opt/trek/server/public/
|
||||||
|
cp -a /opt/trek/client/public/fonts/. /opt/trek/server/public/fonts/
|
||||||
|
|
||||||
|
restore_backup
|
||||||
|
|
||||||
msg_info "Restoring Data"
|
|
||||||
mv /opt/trek-data.bak /opt/trek/data
|
|
||||||
mv /opt/trek-uploads.bak /opt/trek/uploads
|
|
||||||
rm -rf /opt/trek/server/data /opt/trek/server/uploads
|
rm -rf /opt/trek/server/data /opt/trek/server/uploads
|
||||||
ln -s /opt/trek/data /opt/trek/server/data
|
ln -s /opt/trek/data /opt/trek/server/data
|
||||||
ln -s /opt/trek/uploads /opt/trek/server/uploads
|
ln -s /opt/trek/uploads /opt/trek/server/uploads
|
||||||
cp /opt/trek.env.bak /opt/trek/server/.env
|
|
||||||
rm -f /opt/trek.env.bak
|
rm -rf /opt/trek/node_modules
|
||||||
msg_ok "Restored Data"
|
cd /opt/trek
|
||||||
|
$STD npm ci --workspace=server --omit=dev
|
||||||
|
msg_ok "Set up TREK Workspace"
|
||||||
|
|
||||||
|
if [[ "$MIGRATION" == "1" ]]; then
|
||||||
|
msg_info "Migrating TREK Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/trek.service
|
||||||
|
[Unit]
|
||||||
|
Description=TREK Travel Planner
|
||||||
|
Documentation=https://github.com/mauriceboe/TREK
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/trek/server
|
||||||
|
EnvironmentFile=/opt/trek/server/.env
|
||||||
|
Environment=XDG_CACHE_HOME=/tmp/trek-kf6-cache
|
||||||
|
Environment=QT_QPA_PLATFORM=offscreen
|
||||||
|
ExecStart=/usr/bin/node --require tsconfig-paths/register dist/index.js
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl daemon-reload
|
||||||
|
msg_ok "Migrated TREK Service"
|
||||||
|
fi
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start trek
|
systemctl start trek
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
msg_ok "Updated Successfully!"
|
msg_ok "Updated Successfully!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,29 +16,22 @@ update_os
|
|||||||
msg_info "Setting up TemurinJDK"
|
msg_info "Setting up TemurinJDK"
|
||||||
setup_java
|
setup_java
|
||||||
$STD apt install -y temurin-{8,11,17,21,25}-jre
|
$STD apt install -y temurin-{8,11,17,21,25}-jre
|
||||||
sudo update-alternatives --set java /usr/lib/jvm/temurin-25-jre-amd64/bin/java
|
$STD update-alternatives --set java /usr/lib/jvm/temurin-25-jre-amd64/bin/java
|
||||||
msg_ok "Installed TemurinJDK"
|
msg_ok "Installed TemurinJDK"
|
||||||
|
|
||||||
msg_info "Setup Python3"
|
msg_info "Setup Python3"
|
||||||
$STD apt install -y \
|
$STD apt install -y \
|
||||||
python3 \
|
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-venv
|
python3-venv
|
||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||||
msg_ok "Setup Python3"
|
msg_ok "Setup Python3"
|
||||||
|
|
||||||
msg_info "Installing Crafty-Controller (Patience)"
|
|
||||||
useradd crafty -m -s /bin/bash
|
useradd crafty -m -s /bin/bash
|
||||||
cd /opt
|
|
||||||
mkdir -p /opt/crafty-controller/crafty /opt/crafty-controller/server
|
mkdir -p /opt/crafty-controller/crafty /opt/crafty-controller/server
|
||||||
RELEASE=$(curl -fsSL "https://gitlab.com/api/v4/projects/20430749/releases" | grep -o '"tag_name":"v[^"]*"' | head -n 1 | sed 's/"tag_name":"v//;s/"//')
|
fetch_and_deploy_gl_release "Crafty-Controller" "crafty-controller/crafty-4" "tarball" "latest" "/opt/crafty-controller/crafty/crafty-4"
|
||||||
echo "${RELEASE}" >"/opt/crafty-controller_version.txt"
|
|
||||||
curl -fsSL "https://gitlab.com/crafty-controller/crafty-4/-/archive/v${RELEASE}/crafty-4-v${RELEASE}.zip" -o "crafty-4-v${RELEASE}.zip"
|
|
||||||
$STD unzip crafty-4-v"${RELEASE}".zip
|
|
||||||
cp -a crafty-4-v"${RELEASE}"/. /opt/crafty-controller/crafty/crafty-4/
|
|
||||||
rm -rf crafty-4-v"${RELEASE}"
|
|
||||||
|
|
||||||
|
msg_info "Installing Crafty-Controller dependencies (Patience)"
|
||||||
cd /opt/crafty-controller/crafty
|
cd /opt/crafty-controller/crafty
|
||||||
python3 -m venv .venv
|
python3 -m venv .venv
|
||||||
chown -R crafty:crafty /opt/crafty-controller/
|
chown -R crafty:crafty /opt/crafty-controller/
|
||||||
@@ -47,7 +40,7 @@ $STD sudo -u crafty bash -c '
|
|||||||
cd /opt/crafty-controller/crafty/crafty-4
|
cd /opt/crafty-controller/crafty/crafty-4
|
||||||
pip3 install --no-cache-dir -r requirements.txt
|
pip3 install --no-cache-dir -r requirements.txt
|
||||||
'
|
'
|
||||||
msg_ok "Installed Craft-Controller and dependencies"
|
msg_ok "Installed Crafty-Controller dependencies"
|
||||||
|
|
||||||
msg_info "Setting up service"
|
msg_info "Setting up service"
|
||||||
cat <<EOF >/etc/systemd/system/crafty-controller.service
|
cat <<EOF >/etc/systemd/system/crafty-controller.service
|
||||||
@@ -80,7 +73,6 @@ if [[ -f "$CREDS_FILE" ]]; then
|
|||||||
} >>~/crafty-controller.creds
|
} >>~/crafty-controller.creds
|
||||||
fi
|
fi
|
||||||
msg_ok "Service started"
|
msg_ok "Service started"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ DEGOOG_PLUGINS_DIR=/opt/degoog/data/plugins
|
|||||||
DEGOOG_THEMES_DIR=/opt/degoog/data/themes
|
DEGOOG_THEMES_DIR=/opt/degoog/data/themes
|
||||||
DEGOOG_ALIASES_FILE=/opt/degoog/data/aliases.json
|
DEGOOG_ALIASES_FILE=/opt/degoog/data/aliases.json
|
||||||
DEGOOG_PLUGIN_SETTINGS_FILE=/opt/degoog/data/plugin-settings.json
|
DEGOOG_PLUGIN_SETTINGS_FILE=/opt/degoog/data/plugin-settings.json
|
||||||
DEGOOG_VALKEY_URL=redis://valkey:6379
|
DEGOOG_VALKEY_URL=redis://127.0.0.1:6379
|
||||||
DEGOOG_CACHE_MAX_ENTRIES=1000
|
DEGOOG_CACHE_MAX_ENTRIES=1000
|
||||||
DEGOOG_CACHE_TTL_MS=43200000
|
DEGOOG_CACHE_TTL_MS=43200000
|
||||||
# DEGOOG_SETTINGS_PASSWORDS=changeme
|
# DEGOOG_SETTINGS_PASSWORDS=changeme
|
||||||
|
|||||||
@@ -0,0 +1,68 @@
|
|||||||
|
#!/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/jeffvli/feishin
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
nginx \
|
||||||
|
gettext-base
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "feishin" "jeffvli/feishin" "tarball"
|
||||||
|
|
||||||
|
msg_info "Building Feishin Web"
|
||||||
|
cd /opt/feishin
|
||||||
|
#PNPM_VERSION=$(jq -r '.packageManager | ltrimstr("pnpm@")' /opt/feishin/package.json)
|
||||||
|
$STD corepack enable
|
||||||
|
$STD corepack prepare "pnpm@10" --activate
|
||||||
|
$STD pnpm install
|
||||||
|
$STD pnpm run build:web
|
||||||
|
msg_ok "Built Feishin Web"
|
||||||
|
|
||||||
|
msg_info "Configuring Environment"
|
||||||
|
cat <<EOF >/opt/feishin/.env
|
||||||
|
SERVER_NAME=jellyfin
|
||||||
|
SERVER_LOCK=false
|
||||||
|
SERVER_TYPE=jellyfin
|
||||||
|
SERVER_URL=http://localhost:8096
|
||||||
|
REMOTE_URL=
|
||||||
|
LEGACY_AUTHENTICATION=false
|
||||||
|
ANALYTICS_DISABLED=false
|
||||||
|
PUBLIC_PATH=/
|
||||||
|
EOF
|
||||||
|
msg_ok "Configured Environment"
|
||||||
|
|
||||||
|
msg_info "Publishing Web Assets"
|
||||||
|
rm -rf /usr/share/nginx/html
|
||||||
|
mkdir -p /usr/share/nginx/html
|
||||||
|
cp -r /opt/feishin/out/web/. /usr/share/nginx/html/
|
||||||
|
|
||||||
|
set -a
|
||||||
|
source /opt/feishin/.env
|
||||||
|
set +a
|
||||||
|
|
||||||
|
envsubst </opt/feishin/settings.js.template >/etc/nginx/conf.d/settings.js
|
||||||
|
envsubst '${PUBLIC_PATH}' </opt/feishin/ng.conf.template >/etc/nginx/sites-available/feishin
|
||||||
|
|
||||||
|
ln -sf /etc/nginx/sites-available/feishin /etc/nginx/sites-enabled/feishin
|
||||||
|
rm -f /etc/nginx/sites-enabled/default
|
||||||
|
systemctl enable -q --now nginx
|
||||||
|
systemctl reload nginx
|
||||||
|
msg_ok "Published Web Assets"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -14,12 +14,17 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y build-essential python3-dev
|
$STD apt install -y \
|
||||||
|
build-essential \
|
||||||
|
pkg-config
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
PYTHON_VERSION="3.11" setup_uv
|
||||||
|
NODE_VERSION="22" setup_nodejs #needed because better-sql break
|
||||||
|
|
||||||
msg_info "Installing FlowiseAI (Patience)"
|
msg_info "Installing FlowiseAI (Patience)"
|
||||||
|
PYTHON_BIN="$(uv python find 3.11)"
|
||||||
|
export npm_config_python="$PYTHON_BIN"
|
||||||
$STD npm install -g flowise \
|
$STD npm install -g flowise \
|
||||||
@opentelemetry/exporter-trace-otlp-grpc \
|
@opentelemetry/exporter-trace-otlp-grpc \
|
||||||
@opentelemetry/exporter-trace-otlp-proto \
|
@opentelemetry/exporter-trace-otlp-proto \
|
||||||
|
|||||||
@@ -39,8 +39,14 @@ sed -i "s|^DB_USERNAME=.*|DB_USERNAME=${PG_DB_USER}|" .env
|
|||||||
sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=${PG_DB_PASS}|" .env
|
sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=${PG_DB_PASS}|" .env
|
||||||
COMPOSER_ALLOW_SUPERUSER=1 $STD composer install --no-dev --optimize-autoloader --no-interaction
|
COMPOSER_ALLOW_SUPERUSER=1 $STD composer install --no-dev --optimize-autoloader --no-interaction
|
||||||
$STD php artisan key:generate
|
$STD php artisan key:generate
|
||||||
$STD yarn install
|
if command -v corepack >/dev/null 2>&1; then
|
||||||
$STD yarn build
|
$STD corepack enable
|
||||||
|
$STD corepack yarn install
|
||||||
|
$STD corepack yarn build
|
||||||
|
else
|
||||||
|
$STD yarn install
|
||||||
|
$STD yarn build
|
||||||
|
fi
|
||||||
mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache
|
mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache
|
||||||
chown -R www-data:www-data /opt/invoiceshelf
|
chown -R www-data:www-data /opt/invoiceshelf
|
||||||
chmod -R 775 storage bootstrap/cache
|
chmod -R 775 storage bootstrap/cache
|
||||||
|
|||||||
+12
-13
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: Omar Minaya
|
# Author: CrazyWolf13
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://www.kasmweb.com/docs/latest/index.html
|
# Source: https://www.kasmweb.com/docs/latest/index.html
|
||||||
|
|
||||||
@@ -18,19 +18,18 @@ $STD sh <(curl -fsSL https://get.docker.com/)
|
|||||||
msg_ok "Installed Docker"
|
msg_ok "Installed Docker"
|
||||||
|
|
||||||
msg_info "Detecting latest Kasm Workspaces release"
|
msg_info "Detecting latest Kasm Workspaces release"
|
||||||
KASM_VERSION=$(curl -s https://kasm.com/downloads | grep -oP '<h1[^>]*>.*?</h1>' | sed -E 's/<\/?h1[^>]*>//g' | grep -oP '\d+\.\d+\.\d+')
|
KASM_URL=$(curl -s https://kasm.com/downloads \
|
||||||
KASM_URL="https://kasm-static-content.s3.amazonaws.com/kasm_release_${KASM_VERSION:-var_kasm_version}.tar.gz"
|
| grep -oP 'https://kasm-static-content\.s3\.amazonaws\.com/kasm_release_\d+\.\d+\.\d+-latest\.tar\.gz' \
|
||||||
|
| head -1)
|
||||||
|
KASM_VERSION=$(echo "$KASM_URL" | grep -oP '\d+\.\d+\.\d+(?=-latest)')
|
||||||
|
|
||||||
# KASM_URL=$(curl -fsSL "https://www.kasm.com/downloads" | tr '\n' ' ' | grep -oE 'https://kasm-static-content[^"]*kasm_release_[0-9]+\.[0-9]+\.[0-9]+\.[a-z0-9]+\.tar\.gz' | head -n 1)
|
# Fallback to predefined version if online lookup failed.
|
||||||
# if [[ -z "$KASM_URL" ]]; then
|
if [[ -z "$KASM_VERSION" ]] || [[ -z "$KASM_URL" ]]; then
|
||||||
# SERVICE_IMAGE_URL=$(curl -fsSL "https://www.kasm.com/downloads" | tr '\n' ' ' | grep -oE 'https://kasm-static-content[^"]*kasm_release_service_images_amd64_[0-9]+\.[0-9]+\.[0-9]+\.tar\.gz' | head -n 1)
|
msg_warn "Unable to fetch latest Kasm release online, falling back to v${var_kasm_version}"
|
||||||
# if [[ -n "$SERVICE_IMAGE_URL" ]]; then
|
fi
|
||||||
# KASM_VERSION=$(echo "$SERVICE_IMAGE_URL" | sed -E 's/.*kasm_release_service_images_amd64_([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
|
||||||
# KASM_URL="https://kasm-static-content.s3.amazonaws.com/kasm_release_${KASM_VERSION}.tar.gz"
|
KASM_VERSION="${KASM_VERSION:-$var_kasm_version}"
|
||||||
# fi
|
KASM_URL="${KASM_URL:-https://kasm-static-content.s3.amazonaws.com/kasm_release_${KASM_VERSION}-latest.tar.gz}"
|
||||||
# else
|
|
||||||
# KASM_VERSION=$(echo "$KASM_URL" | sed -E 's/.*kasm_release_([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
|
||||||
# fi
|
|
||||||
|
|
||||||
if [[ -z "$KASM_VERSION" ]] || [[ -z "$KASM_URL" ]]; then
|
if [[ -z "$KASM_VERSION" ]] || [[ -z "$KASM_URL" ]]; then
|
||||||
msg_error "Unable to detect latest Kasm release URL."
|
msg_error "Unable to detect latest Kasm release URL."
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: MickLesk (CanbiZ) | tewalds
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/kiwix/kiwix-tools
|
||||||
|
|
||||||
|
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 software-properties-common
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
msg_info "Adding Kiwix PPA"
|
||||||
|
add-apt-repository -y ppa:kiwixteam/release >>"$(get_active_logfile)" 2>&1
|
||||||
|
$STD apt update
|
||||||
|
msg_ok "Added Kiwix PPA"
|
||||||
|
|
||||||
|
msg_info "Installing Kiwix-Tools"
|
||||||
|
$STD apt install -y kiwix-tools
|
||||||
|
RELEASE=$(dpkg -s kiwix-tools 2>/dev/null | awk '/^Version:/{print $2}')
|
||||||
|
mkdir -p /data
|
||||||
|
echo "${RELEASE}" >/root/.kiwix
|
||||||
|
msg_ok "Installed Kiwix-Tools"
|
||||||
|
|
||||||
|
msg_info "Downloading Kiwix Test Archive"
|
||||||
|
ZIM_BASE_URL="https://download.kiwix.org/zim/wikipedia"
|
||||||
|
ZIM_FILE="$(CURL_TIMEOUT=60 CURL_CONNECT_TO=15 curl_with_retry "${ZIM_BASE_URL}/" "-" |
|
||||||
|
grep -oE 'href="speedtest_en_blob_[0-9]{4}-[0-9]{2}\.zim"' |
|
||||||
|
sed -E 's/^href="|"$//g' |
|
||||||
|
sort -V |
|
||||||
|
tail -n 1)" || true
|
||||||
|
|
||||||
|
if [[ -z "${ZIM_FILE}" ]]; then
|
||||||
|
msg_warn "No Kiwix speedtest ZIM archive found - skipping optional download"
|
||||||
|
else
|
||||||
|
ZIM_URL="${ZIM_BASE_URL}/${ZIM_FILE}"
|
||||||
|
ZIM_TEMP="/data/.${ZIM_FILE}.tmp"
|
||||||
|
ZIM_TARGET="/data/${ZIM_FILE}"
|
||||||
|
if ! CURL_TIMEOUT=120 CURL_CONNECT_TO=15 curl_with_retry "${ZIM_URL}" "${ZIM_TEMP}"; then
|
||||||
|
rm -f "${ZIM_TEMP}"
|
||||||
|
msg_warn "Failed to download Kiwix ZIM archive - skipping optional download"
|
||||||
|
ZIM_FILE=""
|
||||||
|
elif [[ ! -s "${ZIM_TEMP}" ]]; then
|
||||||
|
rm -f "${ZIM_TEMP}"
|
||||||
|
msg_warn "Downloaded Kiwix ZIM archive is empty - skipping optional download"
|
||||||
|
ZIM_FILE=""
|
||||||
|
else
|
||||||
|
mv "${ZIM_TEMP}" "${ZIM_TARGET}"
|
||||||
|
msg_ok "Downloaded Kiwix Test Archive (${ZIM_FILE})"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<'EOF' >/etc/systemd/system/kiwix-serve.service
|
||||||
|
[Unit]
|
||||||
|
Description=Kiwix ZIM Server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/bin/sh -c 'exec /usr/bin/kiwix-serve --port 8080 /data/*.zim'
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now kiwix-serve
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -17,7 +17,7 @@ msg_info "Installing OpenObserve"
|
|||||||
mkdir -p /opt/openobserve/data
|
mkdir -p /opt/openobserve/data
|
||||||
RELEASE=$(get_latest_github_release "openobserve/openobserve")
|
RELEASE=$(get_latest_github_release "openobserve/openobserve")
|
||||||
tar zxf <(curl -fsSL https://downloads.openobserve.ai/releases/openobserve/v$RELEASE/openobserve-v$RELEASE-linux-amd64.tar.gz) -C /opt/openobserve
|
tar zxf <(curl -fsSL https://downloads.openobserve.ai/releases/openobserve/v$RELEASE/openobserve-v$RELEASE-linux-amd64.tar.gz) -C /opt/openobserve
|
||||||
ROOT_PASS=$(openssl rand -base64 18 | cut -c1-13)
|
ROOT_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c9)Aa1!"
|
||||||
|
|
||||||
cat <<EOF >/opt/openobserve/data/.env
|
cat <<EOF >/opt/openobserve/data/.env
|
||||||
ZO_ROOT_USER_EMAIL = "admin@example.com"
|
ZO_ROOT_USER_EMAIL = "admin@example.com"
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ msg_ok "Installed Dependencies"
|
|||||||
PG_VERSION="16" setup_postgresql
|
PG_VERSION="16" setup_postgresql
|
||||||
PG_DB_NAME="paperlessdb" PG_DB_USER="paperless" setup_postgresql_db
|
PG_DB_NAME="paperlessdb" PG_DB_USER="paperless" setup_postgresql_db
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
PYTHON_VERSION="3.13" setup_uv
|
||||||
fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "latest" "/opt/paperless" "paperless*tar.xz"
|
fetch_and_deploy_gh_release "paperless" "paperless-ngx/paperless-ngx" "prebuild" "v2.20.15" "/opt/paperless" "paperless*tar.xz"
|
||||||
|
|
||||||
msg_info "Setup Paperless-ngx"
|
msg_info "Setup Paperless-ngx"
|
||||||
cd /opt/paperless
|
cd /opt/paperless
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ fetch_and_deploy_gl_release "storyteller" "storyteller-platform/storyteller" "ta
|
|||||||
|
|
||||||
msg_info "Setting up Storyteller"
|
msg_info "Setting up Storyteller"
|
||||||
cd /opt/storyteller
|
cd /opt/storyteller
|
||||||
$STD yarn install --network-timeout 600000
|
$STD corepack enable
|
||||||
|
$STD corepack yarn install --network-timeout 600000
|
||||||
$STD gcc -g -fPIC -rdynamic -shared web/sqlite/uuid.c -o web/sqlite/uuid.c.so
|
$STD gcc -g -fPIC -rdynamic -shared web/sqlite/uuid.c -o web/sqlite/uuid.c.so
|
||||||
STORYTELLER_SECRET_KEY=$(openssl rand -base64 32)
|
STORYTELLER_SECRET_KEY=$(openssl rand -base64 32)
|
||||||
cat <<EOF >/opt/storyteller/.env
|
cat <<EOF >/opt/storyteller/.env
|
||||||
@@ -58,7 +59,7 @@ export CI=1
|
|||||||
export NODE_ENV=production
|
export NODE_ENV=production
|
||||||
export NEXT_TELEMETRY_DISABLED=1
|
export NEXT_TELEMETRY_DISABLED=1
|
||||||
export SQLITE_NATIVE_BINDING=/opt/storyteller/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
export SQLITE_NATIVE_BINDING=/opt/storyteller/node_modules/better-sqlite3/build/Release/better_sqlite3.node
|
||||||
$STD yarn workspaces foreach -Rpt --from @storyteller-platform/web --exclude @storyteller-platform/eslint run build
|
$STD corepack yarn workspaces foreach -Rpt --from @storyteller-platform/web --exclude @storyteller-platform/eslint run build
|
||||||
mkdir -p /opt/storyteller/web/.next/standalone/web/.next/static
|
mkdir -p /opt/storyteller/web/.next/standalone/web/.next/static
|
||||||
cp -rT /opt/storyteller/web/.next/static /opt/storyteller/web/.next/standalone/web/.next/static
|
cp -rT /opt/storyteller/web/.next/static /opt/storyteller/web/.next/standalone/web/.next/static
|
||||||
if [[ -d /opt/storyteller/web/public ]]; then
|
if [[ -d /opt/storyteller/web/public ]]; then
|
||||||
|
|||||||
+42
-17
@@ -14,57 +14,82 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y build-essential
|
$STD apt install -y \
|
||||||
|
build-essential \
|
||||||
|
libkitinerary-bin
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
fetch_and_deploy_gh_release "trek" "mauriceboe/TREK" "tarball"
|
fetch_and_deploy_gh_release "trek" "mauriceboe/TREK" "tarball"
|
||||||
|
|
||||||
msg_info "Building Client"
|
msg_info "Setup TREK"
|
||||||
cd /opt/trek/client
|
cd /opt/trek
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
$STD npm run build
|
$STD npm run build --workspace=shared
|
||||||
msg_ok "Built Client"
|
$STD npm run build --workspace=client
|
||||||
|
$STD npm run build --workspace=server
|
||||||
|
msg_ok "Setup TREK"
|
||||||
|
|
||||||
msg_info "Setting up Server"
|
msg_info "Setting up TREK Workspace"
|
||||||
cd /opt/trek/server
|
rm -rf /opt/trek/server/public
|
||||||
$STD npm ci
|
|
||||||
mkdir -p /opt/trek/server/public
|
mkdir -p /opt/trek/server/public
|
||||||
cp -r /opt/trek/client/dist/* /opt/trek/server/public/
|
cp -a /opt/trek/client/dist/. /opt/trek/server/public/
|
||||||
cp -r /opt/trek/client/public/fonts /opt/trek/server/public/fonts 2>/dev/null || true
|
if [[ -d /opt/trek/client/public/fonts ]]; then
|
||||||
mkdir -p /opt/trek/{data/logs,uploads/{files,covers,avatars,photos}}
|
mkdir -p /opt/trek/server/public/fonts
|
||||||
rm -rf /opt/trek/server/data /opt/trek/server/uploads
|
cp -a /opt/trek/client/public/fonts/. /opt/trek/server/public/fonts/
|
||||||
|
fi
|
||||||
|
mkdir -p \
|
||||||
|
/opt/trek/data/logs \
|
||||||
|
/opt/trek/uploads/files \
|
||||||
|
/opt/trek/uploads/covers \
|
||||||
|
/opt/trek/uploads/avatars \
|
||||||
|
/opt/trek/uploads/photos
|
||||||
|
rm -rf /opt/trek/server/data
|
||||||
|
rm -rf /opt/trek/server/uploads
|
||||||
ln -s /opt/trek/data /opt/trek/server/data
|
ln -s /opt/trek/data /opt/trek/server/data
|
||||||
ln -s /opt/trek/uploads /opt/trek/server/uploads
|
ln -s /opt/trek/uploads /opt/trek/server/uploads
|
||||||
|
cd /opt/trek
|
||||||
|
$STD npm prune --omit=dev
|
||||||
|
msg_ok "Set up TREK Workspace"
|
||||||
|
|
||||||
|
msg_info "Configuring TREK"
|
||||||
ENCRYPTION_KEY=$(openssl rand -hex 32)
|
ENCRYPTION_KEY=$(openssl rand -hex 32)
|
||||||
ADMIN_EMAIL="admin@trek.local"
|
ADMIN_EMAIL="admin@trek.local"
|
||||||
ADMIN_PASSWORD=$(openssl rand -base64 18 | tr -dc 'A-Za-z0-9' | head -c 16)
|
ADMIN_PASSWORD=$(openssl rand -base64 18 | tr -dc 'A-Za-z0-9' | head -c 16)
|
||||||
cat <<EOF >/opt/trek/server/.env
|
cat <<EOF >/opt/trek/server/.env
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
HOST=0.0.0.0
|
||||||
PORT=3000
|
PORT=3000
|
||||||
ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
||||||
ADMIN_EMAIL=${ADMIN_EMAIL}
|
ADMIN_EMAIL=${ADMIN_EMAIL}
|
||||||
ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
TZ=UTC
|
||||||
|
LOG_LEVEL=info
|
||||||
|
DEFAULT_LANGUAGE=en
|
||||||
|
ALLOWED_ORIGINS=
|
||||||
COOKIE_SECURE=false
|
COOKIE_SECURE=false
|
||||||
FORCE_HTTPS=false
|
FORCE_HTTPS=false
|
||||||
LOG_LEVEL=info
|
TRUST_PROXY=1
|
||||||
TZ=UTC
|
|
||||||
EOF
|
EOF
|
||||||
chmod 600 /opt/trek/server/.env
|
chmod 600 /opt/trek/server/.env
|
||||||
msg_ok "Set up Server"
|
msg_ok "Configured TREK"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/trek.service
|
cat <<EOF >/etc/systemd/system/trek.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=TREK Travel Planner
|
Description=TREK Travel Planner
|
||||||
After=network.target
|
Documentation=https://github.com/mauriceboe/TREK
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/trek/server
|
WorkingDirectory=/opt/trek/server
|
||||||
EnvironmentFile=/opt/trek/server/.env
|
EnvironmentFile=/opt/trek/server/.env
|
||||||
ExecStart=/usr/bin/node --import tsx src/index.ts
|
Environment=XDG_CACHE_HOME=/tmp/trek-kf6-cache
|
||||||
|
Environment=QT_QPA_PLATFORM=offscreen
|
||||||
|
ExecStart=/usr/bin/node --require tsconfig-paths/register dist/index.js
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ function update() {
|
|||||||
|
|
||||||
msg_info "Installing dependencies"
|
msg_info "Installing dependencies"
|
||||||
cd "$CONFIG_PATH"
|
cd "$CONFIG_PATH"
|
||||||
$STD npm install
|
$STD npm ci
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
|
|
||||||
msg_info "Building ${APP}"
|
msg_info "Building ${APP}"
|
||||||
@@ -151,7 +151,7 @@ function install() {
|
|||||||
|
|
||||||
msg_info "Installing dependencies"
|
msg_info "Installing dependencies"
|
||||||
cd "$CONFIG_PATH"
|
cd "$CONFIG_PATH"
|
||||||
$STD npm install
|
$STD npm ci
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
|
|
||||||
msg_info "Building ${APP}"
|
msg_info "Building ${APP}"
|
||||||
|
|||||||
Reference in New Issue
Block a user