mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-21 03:52:42 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4bbdfc374e |
@@ -524,32 +524,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 2026-08-20
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Umbraco ([#16621](https://github.com/community-scripts/ProxmoxVE/pull/16621))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- storyteller: fix build paths for upstream applications/web/ monorepo restructure [@MickLesk](https://github.com/MickLesk) ([#16627](https://github.com/community-scripts/ProxmoxVE/pull/16627))
|
|
||||||
- tubearchivist: add bgutil POT provider and update yt-dlp to nightly [@CrazyWolf13](https://github.com/CrazyWolf13) ([#16622](https://github.com/community-scripts/ProxmoxVE/pull/16622))
|
|
||||||
- networkoptimizer: preseed iperf3 debconf question to prevent hang install [@MickLesk](https://github.com/MickLesk) ([#16626](https://github.com/community-scripts/ProxmoxVE/pull/16626))
|
|
||||||
- scanopy: limit cargo build parallelism to prevent OOM kill [@MickLesk](https://github.com/MickLesk) ([#16623](https://github.com/community-scripts/ProxmoxVE/pull/16623))
|
|
||||||
- baikal: fall back to composer update when lock doesn't match [@MickLesk](https://github.com/MickLesk) ([#16625](https://github.com/community-scripts/ProxmoxVE/pull/16625))
|
|
||||||
|
|
||||||
- #### 💥 Breaking Changes
|
|
||||||
|
|
||||||
- update: various script to debian 13 [@CrazyWolf13](https://github.com/CrazyWolf13) ([#16525](https://github.com/community-scripts/ProxmoxVE/pull/16525))
|
|
||||||
|
|
||||||
### 🧰 Tools
|
|
||||||
|
|
||||||
- #### 🔧 Refactor
|
|
||||||
|
|
||||||
- copyparty: use fetch_and_deploy_gh_release for version tracking [@MickLesk](https://github.com/MickLesk) ([#16624](https://github.com/community-scripts/ProxmoxVE/pull/16624))
|
|
||||||
|
|
||||||
## 2026-08-19
|
## 2026-08-19
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Configuring Baikal"
|
msg_info "Configuring Baikal"
|
||||||
cd /opt/baikal
|
cd /opt/baikal
|
||||||
$STD composer install || { msg_warn "composer.lock doesn't match composer.json (known upstream packaging issue) - regenerating"; $STD composer update; }
|
$STD composer install
|
||||||
msg_ok "Configured Baikal"
|
msg_ok "Configured Baikal"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@@ -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 tteck
|
# Copyright (c) 2021-2026 tteck
|
||||||
# Author: tteck (tteckster) | Co-Author: CrazyWolf13, MickLesk
|
# Author: tteck (tteckster)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://changedetection.io/ | Github: https://github.com/dgtlmoon/changedetection.io
|
# Source: https://changedetection.io/ | Github: https://github.com/dgtlmoon/changedetection.io
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-4}"
|
|||||||
var_ram="${var_ram:-4096}"
|
var_ram="${var_ram:-4096}"
|
||||||
var_disk="${var_disk:-10}"
|
var_disk="${var_disk:-10}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-13}"
|
var_version="${var_version:-12}"
|
||||||
var_arm64="${var_arm64:-yes}"
|
var_arm64="${var_arm64:-yes}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
__ __ __
|
|
||||||
/ / / /___ ___ / /_ _________ __________
|
|
||||||
/ / / / __ `__ \/ __ \/ ___/ __ `/ ___/ __ \
|
|
||||||
/ /_/ / / / / / / /_/ / / / /_/ / /__/ /_/ /
|
|
||||||
\____/_/ /_/ /_/_.___/_/ \__,_/\___/\____/
|
|
||||||
|
|
||||||
+2
-2
@@ -393,8 +393,8 @@ function compile_libjxl() {
|
|||||||
cd "$SOURCE"
|
cd "$SOURCE"
|
||||||
$STD git reset --hard "$LIBJXL_REVISION"
|
$STD git reset --hard "$LIBJXL_REVISION"
|
||||||
$STD git submodule update --init --recursive --depth 1 --recommend-shallow
|
$STD git submodule update --init --recursive --depth 1 --recommend-shallow
|
||||||
$STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-empty-dht-marker.patch
|
$STD git apply "$BASE_DIR"/server/sources/libjxl-patches/jpegli-empty-dht-marker.patch
|
||||||
$STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-icc-warning.patch
|
$STD git apply "$BASE_DIR"/server/sources/libjxl-patches/jpegli-icc-warning.patch
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
$STD cmake \
|
$STD cmake \
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-4}"
|
|||||||
var_ram="${var_ram:-4096}"
|
var_ram="${var_ram:-4096}"
|
||||||
var_disk="${var_disk:-12}"
|
var_disk="${var_disk:-12}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-13}"
|
var_version="${var_version:-12}"
|
||||||
var_arm64="${var_arm64:-yes}"
|
var_arm64="${var_arm64:-yes}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-4}"
|
|||||||
var_ram="${var_ram:-4096}"
|
var_ram="${var_ram:-4096}"
|
||||||
var_disk="${var_disk:-12}"
|
var_disk="${var_disk:-12}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-13}"
|
var_version="${var_version:-12}"
|
||||||
var_arm64="${var_arm64:-yes}"
|
var_arm64="${var_arm64:-yes}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
var_gpu="${var_gpu:-yes}"
|
var_gpu="${var_gpu:-yes}"
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
|
|||||||
var_ram="${var_ram:-3072}"
|
var_ram="${var_ram:-3072}"
|
||||||
var_disk="${var_disk:-8}"
|
var_disk="${var_disk:-8}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-13}"
|
var_version="${var_version:-12}"
|
||||||
var_arm64="${var_arm64:-yes}"
|
var_arm64="${var_arm64:-yes}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -53,7 +53,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Building Scanopy Server (patience)"
|
msg_info "Building Scanopy Server (patience)"
|
||||||
cd /opt/scanopy/backend
|
cd /opt/scanopy/backend
|
||||||
CARGO_BUILD_JOBS="$(get_parallel_jobs)" $STD cargo build --release --bin server --bin generate-fixtures
|
$STD cargo build --release --bin server --bin generate-fixtures
|
||||||
$STD ./target/release/generate-fixtures --output-dir /opt/scanopy/ui/src/lib/data
|
$STD ./target/release/generate-fixtures --output-dir /opt/scanopy/ui/src/lib/data
|
||||||
mv ./target/release/server /usr/bin/scanopy-server
|
mv ./target/release/server /usr/bin/scanopy-server
|
||||||
msg_ok "Built Scanopy Server"
|
msg_ok "Built Scanopy Server"
|
||||||
|
|||||||
+2
-37
@@ -30,35 +30,9 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f /etc/systemd/system/bgutil-provider.service ]]; then
|
|
||||||
msg_info "Adding BgUtil POT Provider"
|
|
||||||
ensure_dependencies ffmpeg libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev pkg-config
|
|
||||||
fetch_and_deploy_gh_release "bgutil-ytdlp-pot-provider" "Brainicism/bgutil-ytdlp-pot-provider" "tarball"
|
|
||||||
cd /opt/bgutil-ytdlp-pot-provider/server
|
|
||||||
$STD npm ci
|
|
||||||
$STD npx tsc
|
|
||||||
cat <<EOF >/etc/systemd/system/bgutil-provider.service
|
|
||||||
[Unit]
|
|
||||||
Description=BgUtil YT-DLP POT Provider
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
WorkingDirectory=/opt/bgutil-ytdlp-pot-provider/server
|
|
||||||
ExecStart=/usr/bin/node build/main.js
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now bgutil-provider
|
|
||||||
msg_ok "Added BgUtil POT Provider"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "tubearchivist" "tubearchivist/tubearchivist"; then
|
if check_for_gh_release "tubearchivist" "tubearchivist/tubearchivist"; then
|
||||||
msg_info "Stopping Services"
|
msg_info "Stopping Services"
|
||||||
systemctl stop bgutil-provider tubearchivist tubearchivist-celery tubearchivist-beat
|
systemctl stop tubearchivist tubearchivist-celery tubearchivist-beat
|
||||||
msg_ok "Stopped Services"
|
msg_ok "Stopped Services"
|
||||||
|
|
||||||
create_backup \
|
create_backup \
|
||||||
@@ -84,17 +58,8 @@ EOF
|
|||||||
mkdir -p /opt/yt_plugins/bgutil
|
mkdir -p /opt/yt_plugins/bgutil
|
||||||
$STD uv pip install --python /opt/tubearchivist/.venv/bin/python --target /opt/yt_plugins/bgutil -r /opt/tubearchivist/backend/requirements.plugins.txt
|
$STD uv pip install --python /opt/tubearchivist/.venv/bin/python --target /opt/yt_plugins/bgutil -r /opt/tubearchivist/backend/requirements.plugins.txt
|
||||||
fi
|
fi
|
||||||
$STD uv pip install --python /opt/tubearchivist/.venv/bin/python -U --prerelease allow "yt-dlp[default]"
|
|
||||||
msg_ok "Rebuilt Tube Archivist"
|
msg_ok "Rebuilt Tube Archivist"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bgutil-ytdlp-pot-provider" "Brainicism/bgutil-ytdlp-pot-provider" "tarball"
|
|
||||||
|
|
||||||
msg_info "Rebuilding BgUtil POT Provider"
|
|
||||||
cd /opt/bgutil-ytdlp-pot-provider/server
|
|
||||||
$STD npm ci
|
|
||||||
$STD npx tsc
|
|
||||||
msg_ok "Rebuilt BgUtil POT Provider"
|
|
||||||
|
|
||||||
msg_info "Restoring Configuration"
|
msg_info "Restoring Configuration"
|
||||||
sed -i 's|^TA_APP_DIR=/opt/tubearchivist$|TA_APP_DIR=/opt/tubearchivist/backend|' /opt/tubearchivist/.env
|
sed -i 's|^TA_APP_DIR=/opt/tubearchivist$|TA_APP_DIR=/opt/tubearchivist/backend|' /opt/tubearchivist/.env
|
||||||
sed -i 's|^TA_CACHE_DIR=/opt/tubearchivist/cache$|TA_CACHE_DIR=/cache|' /opt/tubearchivist/.env
|
sed -i 's|^TA_CACHE_DIR=/opt/tubearchivist/cache$|TA_CACHE_DIR=/cache|' /opt/tubearchivist/.env
|
||||||
@@ -111,7 +76,7 @@ EOF
|
|||||||
msg_ok "Restored Configuration"
|
msg_ok "Restored Configuration"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
systemctl start bgutil-provider tubearchivist tubearchivist-celery tubearchivist-beat
|
systemctl start tubearchivist tubearchivist-celery tubearchivist-beat
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
msg_ok "Started Services"
|
msg_ok "Started Services"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
#!/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: Joost van den Berg (montagneId)
|
|
||||||
# License: MIT | https://github.com/montagneid/ProxmoxVED/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/umbraco/Umbraco-CMS
|
|
||||||
|
|
||||||
APP="Umbraco"
|
|
||||||
var_tags="${var_tags:-website}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-512}"
|
|
||||||
var_disk="${var_disk:-8}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
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 /var/www ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
msg_info "Updating LXC"
|
|
||||||
$STD apt update
|
|
||||||
$STD apt upgrade -y
|
|
||||||
msg_ok "Updated LXC"
|
|
||||||
|
|
||||||
msg_info "Updating Umbraco Templates"
|
|
||||||
$STD dotnet new update
|
|
||||||
msg_ok "Updated Umbraco Templates"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
||||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
|
||||||
echo -e "${GATEWAY}${BGN}https://${IP}"
|
|
||||||
@@ -25,7 +25,7 @@ PG_DB_NAME="baikal_db" PG_DB_USER="baikal_user" PG_DB_PASS="$(openssl rand -base
|
|||||||
|
|
||||||
msg_info "Configuring Baikal"
|
msg_info "Configuring Baikal"
|
||||||
cd /opt/baikal
|
cd /opt/baikal
|
||||||
$STD composer install || { msg_warn "composer.lock doesn't match composer.json (known upstream packaging issue) - regenerating"; $STD composer update; }
|
$STD composer install
|
||||||
cat <<EOF >/opt/baikal/config/baikal.yaml
|
cat <<EOF >/opt/baikal/config/baikal.yaml
|
||||||
database:
|
database:
|
||||||
backend: pgsql
|
backend: pgsql
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 tteck
|
# Copyright (c) 2021-2026 tteck
|
||||||
# Author: tteck (tteckster) | Co-Author: CrazyWolf13, MickLesk
|
# Author: tteck (tteckster)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://changedetection.io/ | Github: https://github.com/dgtlmoon/changedetection.io
|
# Source: https://changedetection.io/ | Github: https://github.com/dgtlmoon/changedetection.io
|
||||||
|
|
||||||
@@ -18,6 +18,7 @@ $STD apt-get install -y \
|
|||||||
git \
|
git \
|
||||||
build-essential \
|
build-essential \
|
||||||
dumb-init \
|
dumb-init \
|
||||||
|
gconf-service \
|
||||||
libjpeg-dev \
|
libjpeg-dev \
|
||||||
libatk-bridge2.0-0 \
|
libatk-bridge2.0-0 \
|
||||||
libasound2 \
|
libasound2 \
|
||||||
@@ -28,7 +29,8 @@ $STD apt-get install -y \
|
|||||||
libexpat1 \
|
libexpat1 \
|
||||||
libgbm-dev \
|
libgbm-dev \
|
||||||
libgbm1 \
|
libgbm1 \
|
||||||
libgdk-pixbuf-2.0-0 \
|
libgconf-2-4 \
|
||||||
|
libgdk-pixbuf2.0-0 \
|
||||||
libglib2.0-0 \
|
libglib2.0-0 \
|
||||||
libgtk-3-0 \
|
libgtk-3-0 \
|
||||||
libnspr4 \
|
libnspr4 \
|
||||||
@@ -78,7 +80,7 @@ $STD apt-get install -y \
|
|||||||
fonts-freefont-ttf \
|
fonts-freefont-ttf \
|
||||||
fonts-gfs-neohellenic \
|
fonts-gfs-neohellenic \
|
||||||
fonts-indic fonts-ipafont-gothic \
|
fonts-indic fonts-ipafont-gothic \
|
||||||
fonts-kacst-one fonts-liberation \
|
fonts-kacst fonts-liberation \
|
||||||
fonts-noto-cjk \
|
fonts-noto-cjk \
|
||||||
fonts-noto-color-emoji \
|
fonts-noto-color-emoji \
|
||||||
fonts-roboto \
|
fonts-roboto \
|
||||||
|
|||||||
@@ -194,8 +194,8 @@ $STD git clone https://github.com/libjxl/libjxl.git "$SOURCE"
|
|||||||
cd "$SOURCE"
|
cd "$SOURCE"
|
||||||
$STD git reset --hard "$LIBJXL_REVISION"
|
$STD git reset --hard "$LIBJXL_REVISION"
|
||||||
$STD git submodule update --init --recursive --depth 1 --recommend-shallow
|
$STD git submodule update --init --recursive --depth 1 --recommend-shallow
|
||||||
$STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-empty-dht-marker.patch
|
$STD git apply "$BASE_DIR"/server/sources/libjxl-patches/jpegli-empty-dht-marker.patch
|
||||||
$STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-icc-warning.patch
|
$STD git apply "$BASE_DIR"/server/sources/libjxl-patches/jpegli-icc-warning.patch
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
$STD cmake \
|
$STD cmake \
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
echo "iperf3 iperf3/start_daemon boolean false" | debconf-set-selections
|
$STD apt install -y \
|
||||||
DEBIAN_FRONTEND=noninteractive $STD apt install -y \
|
|
||||||
git \
|
git \
|
||||||
sshpass \
|
sshpass \
|
||||||
iperf3
|
iperf3
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ RUST_TOOLCHAIN=$TOOLCHAIN setup_rust
|
|||||||
|
|
||||||
msg_info "Building Scanopy Server (patience)"
|
msg_info "Building Scanopy Server (patience)"
|
||||||
cd /opt/scanopy/backend
|
cd /opt/scanopy/backend
|
||||||
CARGO_BUILD_JOBS="$(get_parallel_jobs)" $STD cargo build --release --bin server --bin generate-fixtures
|
$STD cargo build --release --bin server --bin generate-fixtures
|
||||||
$STD ./target/release/generate-fixtures --output-dir /opt/scanopy/ui/src/lib/data
|
$STD ./target/release/generate-fixtures --output-dir /opt/scanopy/ui/src/lib/data
|
||||||
mv ./target/release/server /usr/bin/scanopy-server
|
mv ./target/release/server /usr/bin/scanopy-server
|
||||||
msg_ok "Built Scanopy Server"
|
msg_ok "Built Scanopy Server"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ msg_info "Setting up Storyteller"
|
|||||||
cd /opt/storyteller
|
cd /opt/storyteller
|
||||||
|
|
||||||
$STD corepack yarn install --network-timeout 600000
|
$STD corepack yarn install --network-timeout 600000
|
||||||
$STD gcc -g -fPIC -rdynamic -shared applications/web/sqlite/uuid.c -o applications/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
|
||||||
STORYTELLER_SECRET_KEY=${STORYTELLER_SECRET_KEY}
|
STORYTELLER_SECRET_KEY=${STORYTELLER_SECRET_KEY}
|
||||||
@@ -60,17 +60,17 @@ 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 corepack 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/applications/web/.next/standalone/applications/web/.next/static
|
mkdir -p /opt/storyteller/web/.next/standalone/web/.next/static
|
||||||
cp -rT /opt/storyteller/applications/web/.next/static /opt/storyteller/applications/web/.next/standalone/applications/web/.next/static
|
cp -rT /opt/storyteller/web/.next/static /opt/storyteller/web/.next/standalone/web/.next/static
|
||||||
if [[ -d /opt/storyteller/applications/web/public ]]; then
|
if [[ -d /opt/storyteller/web/public ]]; then
|
||||||
mkdir -p /opt/storyteller/applications/web/.next/standalone/applications/web/public
|
mkdir -p /opt/storyteller/web/.next/standalone/web/public
|
||||||
cp -rT /opt/storyteller/applications/web/public /opt/storyteller/applications/web/.next/standalone/applications/web/public
|
cp -rT /opt/storyteller/web/public /opt/storyteller/web/.next/standalone/web/public
|
||||||
fi
|
fi
|
||||||
mkdir -p /opt/storyteller/applications/web/.next/standalone/applications/web/migrations
|
mkdir -p /opt/storyteller/web/.next/standalone/web/migrations
|
||||||
cp -rT /opt/storyteller/applications/web/migrations /opt/storyteller/applications/web/.next/standalone/applications/web/migrations
|
cp -rT /opt/storyteller/web/migrations /opt/storyteller/web/.next/standalone/web/migrations
|
||||||
mkdir -p /opt/storyteller/applications/web/.next/standalone/applications/web/sqlite
|
mkdir -p /opt/storyteller/web/.next/standalone/web/sqlite
|
||||||
cp -rT /opt/storyteller/applications/web/sqlite /opt/storyteller/applications/web/.next/standalone/applications/web/sqlite
|
cp -rT /opt/storyteller/web/sqlite /opt/storyteller/web/.next/standalone/web/sqlite
|
||||||
ln -sf /opt/storyteller/.env /opt/storyteller/applications/web/.next/standalone/applications/web/.env
|
ln -sf /opt/storyteller/.env /opt/storyteller/web/.next/standalone/web/.env
|
||||||
msg_ok "Built Storyteller"
|
msg_ok "Built Storyteller"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@@ -82,7 +82,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/storyteller/applications/web/.next/standalone/applications/web
|
WorkingDirectory=/opt/storyteller/web/.next/standalone/web
|
||||||
EnvironmentFile=/opt/storyteller/.env
|
EnvironmentFile=/opt/storyteller/.env
|
||||||
ExecStart=/usr/bin/node --enable-source-maps server.js
|
ExecStart=/usr/bin/node --enable-source-maps server.js
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|||||||
@@ -25,26 +25,13 @@ $STD apt install -y \
|
|||||||
libsasl2-dev \
|
libsasl2-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
ffmpeg \
|
ffmpeg
|
||||||
libcairo2-dev \
|
|
||||||
libpango1.0-dev \
|
|
||||||
libjpeg-dev \
|
|
||||||
libgif-dev \
|
|
||||||
librsvg2-dev \
|
|
||||||
pkg-config
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
UV_PYTHON="3.13" setup_uv
|
UV_PYTHON="3.13" setup_uv
|
||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip"
|
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip"
|
||||||
fetch_and_deploy_gh_release "bgutil-ytdlp-pot-provider" "Brainicism/bgutil-ytdlp-pot-provider" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building BgUtil POT Provider Server"
|
|
||||||
cd /opt/bgutil-ytdlp-pot-provider/server
|
|
||||||
$STD npm ci
|
|
||||||
$STD npx tsc
|
|
||||||
msg_ok "Built BgUtil POT Provider Server"
|
|
||||||
|
|
||||||
msg_info "Installing ElasticSearch"
|
msg_info "Installing ElasticSearch"
|
||||||
setup_deb822_repo \
|
setup_deb822_repo \
|
||||||
@@ -129,10 +116,6 @@ EOF
|
|||||||
systemctl enable -q --now redis-server
|
systemctl enable -q --now redis-server
|
||||||
msg_ok "Set up Tube Archivist"
|
msg_ok "Set up Tube Archivist"
|
||||||
|
|
||||||
msg_info "Installing yt-dlp Nightly"
|
|
||||||
$STD uv pip install --python /opt/tubearchivist/.venv/bin/python -U --prerelease allow "yt-dlp[default]"
|
|
||||||
msg_ok "Installed yt-dlp Nightly"
|
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
msg_info "Configuring Nginx"
|
||||||
sed -i 's/^user www-data;$/user root;/' /etc/nginx/nginx.conf
|
sed -i 's/^user www-data;$/user root;/' /etc/nginx/nginx.conf
|
||||||
cat <<'EOF' >/etc/nginx/sites-available/default
|
cat <<'EOF' >/etc/nginx/sites-available/default
|
||||||
@@ -247,26 +230,10 @@ exec $PYTHON backend_start.py
|
|||||||
RUNEOF
|
RUNEOF
|
||||||
chmod +x /opt/tubearchivist/backend/run.sh
|
chmod +x /opt/tubearchivist/backend/run.sh
|
||||||
ln -sf /opt/tubearchivist/.env /opt/tubearchivist/backend/.env
|
ln -sf /opt/tubearchivist/.env /opt/tubearchivist/backend/.env
|
||||||
cat <<EOF >/etc/systemd/system/bgutil-provider.service
|
|
||||||
[Unit]
|
|
||||||
Description=BgUtil YT-DLP POT Provider
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
WorkingDirectory=/opt/bgutil-ytdlp-pot-provider/server
|
|
||||||
ExecStart=/usr/bin/node build/main.js
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/tubearchivist.service
|
cat <<EOF >/etc/systemd/system/tubearchivist.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Tube Archivist Backend
|
Description=Tube Archivist Backend
|
||||||
After=network.target elasticsearch.service redis-server.service bgutil-provider.service
|
After=network.target elasticsearch.service redis-server.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
@@ -319,7 +286,7 @@ RuntimeMaxSec=3600
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl enable -q --now bgutil-provider tubearchivist tubearchivist-celery tubearchivist-beat
|
systemctl enable -q --now tubearchivist tubearchivist-celery tubearchivist-beat
|
||||||
msg_ok "Created Services"
|
msg_ok "Created Services"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
@@ -1,190 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: Joost van den Berg (montagneId)
|
|
||||||
# License: MIT | https://github.com/montagneid/ProxmoxVED/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/umbraco/Umbraco-CMS
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
var_project_name="cms"
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y \
|
|
||||||
ca-certificates \
|
|
||||||
uuid-runtime \
|
|
||||||
nginx \
|
|
||||||
vsftpd
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
msg_info "Installing .NET SDK 10.0"
|
|
||||||
setup_deb822_repo \
|
|
||||||
"microsoft" \
|
|
||||||
"https://packages.microsoft.com/keys/microsoft-2025.asc" \
|
|
||||||
"https://packages.microsoft.com/debian/13/prod/" \
|
|
||||||
"trixie"
|
|
||||||
$STD apt install -y dotnet-sdk-10.0
|
|
||||||
msg_ok "Installed .NET SDK 10.0"
|
|
||||||
|
|
||||||
msg_info "Installing dotnet Umbraco templates and create project (Patience)"
|
|
||||||
cd /var/www/html
|
|
||||||
$STD dotnet new install Umbraco.Templates
|
|
||||||
$STD dotnet new umbraco --force -n "$var_project_name"
|
|
||||||
msg_ok "Umbraco templates installed and project created"
|
|
||||||
|
|
||||||
msg_info "Configuring database connection and unattended setup"
|
|
||||||
cd /var/www/html/$var_project_name
|
|
||||||
UMBRACO_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
|
||||||
jq --arg umbracopass "$UMBRACO_PASS" '. + {
|
|
||||||
"ConnectionStrings": {
|
|
||||||
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
|
|
||||||
"umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
|
|
||||||
},
|
|
||||||
"Umbraco": {
|
|
||||||
"CMS": {
|
|
||||||
"_Comment": "Remove the Unattended section after first run",
|
|
||||||
"Unattended": {
|
|
||||||
"InstallUnattended": true,
|
|
||||||
"UnattendedUserName": "admin",
|
|
||||||
"UnattendedUserEmail": "admin@umbraco.local",
|
|
||||||
"UnattendedUserPassword": $umbracopass
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}' /var/www/html/$var_project_name/appsettings.json > /tmp/appsettings.tmp && mv /tmp/appsettings.tmp /var/www/html/$var_project_name/appsettings.json
|
|
||||||
ln -sf /var/www/html/$var_project_name/appsettings.json ~/umbraco.creds
|
|
||||||
msg_ok "Database connection and unattended setup configured"
|
|
||||||
|
|
||||||
msg_info "Setting up Nginx Server"
|
|
||||||
rm -f /var/www/html/index.nginx-debian.html
|
|
||||||
cat <<EOF >/etc/nginx/sites-available/default
|
|
||||||
map \$http_connection \$connection_upgrade {
|
|
||||||
"~*Upgrade" \$http_connection;
|
|
||||||
default keep-alive;
|
|
||||||
}
|
|
||||||
server {
|
|
||||||
listen 443 ssl default_server;
|
|
||||||
listen [::]:443 ssl default_server;
|
|
||||||
ssl_certificate /etc/ssl/umbraco/umbraco.crt;
|
|
||||||
ssl_certificate_key /etc/ssl/umbraco/umbraco.key;
|
|
||||||
location / {
|
|
||||||
proxy_pass https://127.0.0.1:7000/;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade \$http_upgrade;
|
|
||||||
proxy_set_header Connection \$connection_upgrade;
|
|
||||||
proxy_set_header Host \$host;
|
|
||||||
proxy_cache_bypass \$http_upgrade;
|
|
||||||
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header X-Forwarded-Proto \$scheme;
|
|
||||||
proxy_buffering on;
|
|
||||||
proxy_buffer_size 16k;
|
|
||||||
proxy_buffers 8 32k;
|
|
||||||
proxy_busy_buffers_size 64k;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
$STD sed -i -E '/^[[:space:]]*worker_cpu_affinity/d' /etc/nginx/nginx.conf
|
|
||||||
$STD sed -i -E 's/^[[:space:]]*worker_processes[[:space:]].*/worker_processes auto;/' /etc/nginx/nginx.conf
|
|
||||||
create_self_signed_cert
|
|
||||||
systemctl reload nginx
|
|
||||||
msg_ok "Nginx Server created"
|
|
||||||
|
|
||||||
msg_info "Creating Kestrel Umbraco Service"
|
|
||||||
cat <<EOF >/usr/local/bin/umbraco-start.sh
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
exec /usr/bin/dotnet /var/www/html/$var_project_name-publish/$var_project_name.dll --urls "https://0.0.0.0:7000"
|
|
||||||
EOF
|
|
||||||
chmod +x /usr/local/bin/umbraco-start.sh
|
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/umbraco-kestrel.service
|
|
||||||
[Unit]
|
|
||||||
Description=Umbraco CMS running on Linux
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
WorkingDirectory=/var/www/html/$var_project_name-publish
|
|
||||||
ExecStart=/usr/local/bin/umbraco-start.sh
|
|
||||||
Restart=always
|
|
||||||
RestartSec=10
|
|
||||||
KillSignal=SIGINT
|
|
||||||
SyslogIdentifier=umbraco
|
|
||||||
User=root
|
|
||||||
Environment=ASPNETCORE_ENVIRONMENT=Production
|
|
||||||
Environment=DOTNET_NOLOGO=true
|
|
||||||
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now umbraco-kestrel
|
|
||||||
msg_ok "Umbraco Kestrel Service created"
|
|
||||||
|
|
||||||
msg_info "Creating dotnet publish script"
|
|
||||||
cat <<EOF >/var/www/html/$var_project_name/publish.sh
|
|
||||||
#!/usr/bin/env bash
|
|
||||||
cd /var/www/html/$var_project_name
|
|
||||||
systemctl stop umbraco-kestrel.service
|
|
||||||
dotnet publish -c Release -o /var/www/html/$var_project_name-publish
|
|
||||||
systemctl start umbraco-kestrel.service
|
|
||||||
EOF
|
|
||||||
chmod +x /var/www/html/$var_project_name/publish.sh
|
|
||||||
msg_ok "Dotnet publish script created"
|
|
||||||
|
|
||||||
msg_info "Building and publishing project (Patience)"
|
|
||||||
$STD /var/www/html/$var_project_name/publish.sh
|
|
||||||
msg_ok "Umbraco published successfully to /var/www/html/$var_project_name-publish"
|
|
||||||
|
|
||||||
msg_info "Setting up FTP Server"
|
|
||||||
useradd ftpuser
|
|
||||||
FTP_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
|
||||||
usermod --password $(echo ${FTP_PASS} | openssl passwd -1 -stdin) ftpuser
|
|
||||||
mkdir -p /var/www/html
|
|
||||||
usermod -d /var/www/html ftp
|
|
||||||
usermod -d /var/www/html ftpuser
|
|
||||||
chown -R ftpuser:ftpuser /var/www/html
|
|
||||||
sed -i "s|#write_enable=YES|write_enable=YES|g" /etc/vsftpd.conf
|
|
||||||
sed -i "s|#chroot_local_user=YES|chroot_local_user=NO|g" /etc/vsftpd.conf
|
|
||||||
systemctl restart -q vsftpd.service
|
|
||||||
{
|
|
||||||
echo "FTP Credentials"
|
|
||||||
echo "Username: ftpuser"
|
|
||||||
echo "Password: $FTP_PASS"
|
|
||||||
} >>~/ftp.creds
|
|
||||||
msg_ok "FTP server setup completed"
|
|
||||||
|
|
||||||
msg_info "Creating Visual Studio FTP Publish Profile"
|
|
||||||
PROJECT_GUID=$(uuidgen | tr '[:upper:]' '[:lower:]')
|
|
||||||
CONTAINER_IP=$(hostname -I | awk '{print $1}')
|
|
||||||
PUBLISH_PROFILE_DIR="/var/www/html/${var_project_name}/Properties/PublishProfiles"
|
|
||||||
mkdir -p "$PUBLISH_PROFILE_DIR"
|
|
||||||
cat >"$PUBLISH_PROFILE_DIR/FTPProfile.pubxml" <<EOF
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project>
|
|
||||||
<PropertyGroup>
|
|
||||||
<WebPublishMethod>FTP</WebPublishMethod>
|
|
||||||
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
|
|
||||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
|
||||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
|
||||||
<SiteUrlToLaunchAfterPublish>https://${CONTAINER_IP}</SiteUrlToLaunchAfterPublish>
|
|
||||||
<ExcludeApp_Data>false</ExcludeApp_Data>
|
|
||||||
<ProjectGuid>${PROJECT_GUID}</ProjectGuid>
|
|
||||||
<publishUrl>${CONTAINER_IP}</publishUrl>
|
|
||||||
<DeleteExistingFiles>false</DeleteExistingFiles>
|
|
||||||
<FtpPassiveMode>true</FtpPassiveMode>
|
|
||||||
<FtpSitePath>${var_project_name}-publish</FtpSitePath>
|
|
||||||
<UserName>ftpuser</UserName>
|
|
||||||
<_SavePWD>true</_SavePWD>
|
|
||||||
<_TargetId>FTP</_TargetId>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
||||||
EOF
|
|
||||||
msg_ok "Publish Profile created"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
Reference in New Issue
Block a user