mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-12-05 23:39:19 +01:00
Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07909c82e1 | ||
|
|
0059ca1815 | ||
|
|
61e6cde880 | ||
|
|
a600ba6437 | ||
|
|
16a82aef39 | ||
|
|
6a25aec144 | ||
|
|
92659c74df | ||
|
|
b42e66a49d | ||
|
|
f6d75d7a33 | ||
|
|
681e168ff7 | ||
|
|
d5978beba9 |
No files matched your search
@@ -590,6 +590,56 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-12-04
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Wiki.js: rebuild SQLite in the application directory [@maniac79](https://github.com/maniac79) ([#19299](https://github.com/community-scripts/ProxmoxVE/pull/19299))
|
||||
- Frigate: stop the service cleanly [@MickLesk](https://github.com/MickLesk) ([#19296](https://github.com/community-scripts/ProxmoxVE/pull/19296))
|
||||
- Update authentik 2026.8.7 [@thieneret](https://github.com/thieneret) ([#19051](https://github.com/community-scripts/ProxmoxVE/pull/19051))
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- Authentik: bump to 2026.11 [@MickLesk](https://github.com/MickLesk) ([#19298](https://github.com/community-scripts/ProxmoxVE/pull/19298))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- Kyoo: install the FFmpeg build its transcoder needs [@MickLesk](https://github.com/MickLesk) ([#19294](https://github.com/community-scripts/ProxmoxVE/pull/19294))
|
||||
|
||||
## 2026-12-03
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- BentoPDF: use relative redirects in nginx [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19284](https://github.com/community-scripts/ProxmoxVE/pull/19284))
|
||||
- TeddyCloud: Include custom images in backup [@Sab44](https://github.com/Sab44) ([#19276](https://github.com/community-scripts/ProxmoxVE/pull/19276))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- AFFiNE: run one server, update to 0.27.4 [@MickLesk](https://github.com/MickLesk) ([#19283](https://github.com/community-scripts/ProxmoxVE/pull/19283))
|
||||
- Docker/NPMplus (Alpine): use docker-cli-compose instead of a downloaded binary [@MickLesk](https://github.com/MickLesk) ([#19278](https://github.com/community-scripts/ProxmoxVE/pull/19278))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- setup_docker: install docker-compose-plugin only next to docker-ce [@MickLesk](https://github.com/MickLesk) ([core#335](https://github.com/community-scripts/core/pull/335))
|
||||
- core: Stop the run when a disabled script is started [@MickLesk](https://github.com/MickLesk) ([core#330](https://github.com/community-scripts/core/pull/330))
|
||||
- docker: remove legacy docker-compose binaries that shadow docker-compose-plugin [@MickLesk](https://github.com/MickLesk) ([core#334](https://github.com/community-scripts/core/pull/334))
|
||||
- tools: add check_for_gl_tag [@MickLesk](https://github.com/MickLesk) ([core#332](https://github.com/community-scripts/core/pull/332))
|
||||
- core: say what curl said when a download fails [@MickLesk](https://github.com/MickLesk) ([core#331](https://github.com/community-scripts/core/pull/331))
|
||||
- feat: ask VMs for tags, delete protection and the DNS search domain [@MickLesk](https://github.com/MickLesk) ([core#329](https://github.com/community-scripts/core/pull/329))
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
- ci: fix fork merges and issue locking, merge the drift-closed workflows [@MickLesk](https://github.com/MickLesk) ([#19286](https://github.com/community-scripts/ProxmoxVE/pull/19286))
|
||||
|
||||
### 📂 Github
|
||||
|
||||
- fix(ci): daily release fixes (drop Frontend, keep days apart) [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19274](https://github.com/community-scripts/ProxmoxVE/pull/19274))
|
||||
- fix(ci): set GH_REPO in the daily release step [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19272](https://github.com/community-scripts/ProxmoxVE/pull/19272))
|
||||
|
||||
## 2026-12-02
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
+219
-130
@@ -31,13 +31,27 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
read -r MAJOR MINOR PATCH <<<"$(sed 's/^version\///; s/\./ /g' "$HOME/.authentik")"
|
||||
# An update that did not finish leaves the version it started from in the .pending marker
|
||||
VERSION_FILE="$HOME/.authentik"
|
||||
if [[ -s $VERSION_FILE.pending ]]; then
|
||||
VERSION_FILE="$VERSION_FILE.pending"
|
||||
fi
|
||||
read -r MAJOR MINOR PATCH <<<"$(sed 's/^version\///; s/\./ /g' "$VERSION_FILE")"
|
||||
|
||||
if [[ $MAJOR == 2026 && $MINOR -lt 5 ]]; then
|
||||
msg_error "Updating from version ${MAJOR}.${MINOR}.${PATCH} is not supported. A minimum version of 2026.5.x is required to update. See: https://docs.goauthentik.io/releases/2026.8/"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ $MAJOR == 2026 && $MINOR -lt 11 ]]; then
|
||||
BASE_URL="$(yq '.web.base_url // ""' /etc/authentik/config.yml 2>/dev/null)$(grep -s '^AUTHENTIK_WEB__BASE_URL=.' /etc/default/authentik-server || true)"
|
||||
BASE_URL+="$(runuser -u postgres -- psql -d authentik -tA -c "SELECT _config->>'authentik_host' FROM authentik_outposts_outpost WHERE managed = 'goauthentik.io/outposts/embedded'" -c "SELECT base_url FROM authentik_tenants_tenant" -c "SELECT base_url FROM authentik_admin_systemsettings" 2>/dev/null | tr -d '[:space:]' || true)"
|
||||
if [[ -z $BASE_URL ]]; then
|
||||
msg_error "authentik 2026.11 does not start without a base URL. Add AUTHENTIK_WEB__BASE_URL=https://<your authentik address> to /etc/default/authentik-server and /etc/default/authentik-worker, then run the update again."
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
msg_info "Update dependencies"
|
||||
ensure_dependencies crossbuild-essential-$(arch_resolve) gcc-$(arch_resolve "x86-64" "aarch64")-linux-gnu cmake clang libunwind-18-dev
|
||||
msg_ok "Update dependencies"
|
||||
@@ -47,8 +61,12 @@ function update_script() {
|
||||
RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust
|
||||
setup_yq
|
||||
|
||||
AUTHENTIK_VERSION="version/2026.8.6"
|
||||
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L26
|
||||
AUTHENTIK_VERSIONS=("version/2026.11.0")
|
||||
# authentik only updates from the previous major release
|
||||
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]]; then
|
||||
AUTHENTIK_VERSIONS=("version/2026.8.7" "version/2026.11.0")
|
||||
fi
|
||||
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L28
|
||||
XMLSEC_VERSION="1.3.13"
|
||||
|
||||
if check_for_gh_release "geoipupdate" "maxmind/geoipupdate"; then
|
||||
@@ -68,143 +86,191 @@ function update_script() {
|
||||
msg_ok "Updated xmlsec"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "authentik" "goauthentik/authentik" "${AUTHENTIK_VERSION}"; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop authentik-server authentik-worker
|
||||
if [[ $(systemctl is-active authentik-ldap) == active ]]; then
|
||||
systemctl stop authentik-ldap
|
||||
fi
|
||||
if [[ $(systemctl is-active authentik-rac) == active ]]; then
|
||||
systemctl stop authentik-rac
|
||||
fi
|
||||
if [[ $(systemctl is-active authentik-radius) == active ]]; then
|
||||
systemctl stop authentik-radius
|
||||
fi
|
||||
msg_ok "Stopped Services"
|
||||
for AUTHENTIK_VERSION in "${AUTHENTIK_VERSIONS[@]}"; do
|
||||
if check_for_gh_release "authentik" "goauthentik/authentik" "${AUTHENTIK_VERSION}"; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop authentik-server authentik-worker
|
||||
if [[ $(systemctl is-active authentik-ldap) == active ]]; then
|
||||
systemctl stop authentik-ldap
|
||||
fi
|
||||
if [[ $(systemctl is-active authentik-rac) == active ]]; then
|
||||
systemctl stop authentik-rac
|
||||
fi
|
||||
if [[ $(systemctl is-active authentik-radius) == active ]]; then
|
||||
systemctl stop authentik-radius
|
||||
fi
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
if [[ ! -d /opt/authentik-data/blueprints ]]; then
|
||||
msg_info "Moving blueprints to presistent directory"
|
||||
cp -r /opt/authentik/blueprints /opt/authentik-data/
|
||||
rm -r /opt/authentik/blueprints
|
||||
$STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +
|
||||
yq -i ".blueprints_dir = \"/opt/authentik-data/blueprints\"" /etc/authentik/config.yml
|
||||
msg_ok "blueprints moved to presistent directory"
|
||||
msg_warn "The blueprints provided by authentik are always overwritten when updated! Only manually created custom blueprints remain unchanged between updates."
|
||||
fi
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
|
||||
UV_PYTHON_INSTALL_DIR="/usr/local/bin" PYTHON_VERSION="3.14.10" UV_PROJECT_DIR="/opt/authentik" setup_uv
|
||||
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
|
||||
|
||||
msg_info "Configuring rust"
|
||||
cd /opt/authentik
|
||||
$STD rustup install
|
||||
$STD rustup default "$(sed -n 's/channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
|
||||
msg_ok "Configured rust"
|
||||
|
||||
msg_info "Updating web"
|
||||
export NODE_ENV="production"
|
||||
cd /opt/authentik
|
||||
$STD node ./scripts/node/lint-runtime.ts ./web
|
||||
cd /opt/authentik/web
|
||||
$STD pnpm install --frozen-lockfile
|
||||
$STD pnpm run build
|
||||
$STD pnpm run build:sfe
|
||||
msg_ok "Updated web"
|
||||
|
||||
msg_info "Updating outposts"
|
||||
cd /opt/authentik
|
||||
mkdir -p /opt/authentik/bin
|
||||
export CGO_ENABLED="1"
|
||||
export CC="$(arch_resolve "x86_64" "aarch64")-linux-gnu-gcc"
|
||||
$STD go mod download
|
||||
$STD go build -o /opt/authentik/bin/ldap ./cmd/ldap
|
||||
$STD go build -o /opt/authentik/bin/rac ./cmd/rac
|
||||
$STD go build -o /opt/authentik/bin/radius ./cmd/radius
|
||||
msg_ok "Updated outposts"
|
||||
|
||||
msg_info "Building binary. It may take more than 10 minutes, please be patient."
|
||||
export AWS_LC_FIPS_SYS_CC="clang"
|
||||
cd /opt/authentik
|
||||
$STD cargo build --package authentik --no-default-features --features core --locked --release
|
||||
cp ./target/release/authentik /opt/authentik/bin/
|
||||
rm -r ./target
|
||||
msg_ok "Built worker"
|
||||
|
||||
msg_info "Updating python server"
|
||||
export UV_NO_BINARY_PACKAGE="cryptography lxml python-kadmin-rs xmlsec"
|
||||
export UV_COMPILE_BYTECODE="1"
|
||||
export UV_LINK_MODE="copy"
|
||||
export UV_NATIVE_TLS="1"
|
||||
export RUSTUP_PERMIT_COPY_RENAME="true"
|
||||
export UV_PYTHON_INSTALL_DIR="/usr/local/bin"
|
||||
cd /opt/authentik
|
||||
for attempt in 1 2 3; do
|
||||
if [[ $attempt -eq 3 ]]; then
|
||||
$STD uv sync --locked --no-install-project --no-dev
|
||||
break
|
||||
fi
|
||||
$STD uv sync --locked --no-install-project --no-dev && break
|
||||
msg_warn "uv sync attempt $attempt failed, retrying..."
|
||||
sleep $((attempt * 15))
|
||||
done
|
||||
chown -R authentik:authentik /opt/authentik
|
||||
msg_ok "Updated python server"
|
||||
|
||||
if [[ $AUTHENTIK_VERSION == "${AUTHENTIK_VERSIONS[-1]}" ]]; then
|
||||
# Installs that never set up MaxMind only have its test databases: give them the DB-IP Lite ones authentik's own image ships
|
||||
if grep -qs '^AccountID ChangeME' /usr/local/etc/GeoIP.conf && [[ $(yq '.events.context_processors.geoip' /etc/authentik/config.yml) == /opt/authentik-data/geoip/GeoLite2-City.mmdb ]]; then
|
||||
yq -i '.events.context_processors.geoip = "/opt/authentik-data/geoip/dbip-city-lite.mmdb"' /etc/authentik/config.yml
|
||||
yq -i '.events.context_processors.asn = "/opt/authentik-data/geoip/dbip-asn-lite.mmdb"' /etc/authentik/config.yml
|
||||
fi
|
||||
if [[ $(yq '.events.context_processors.geoip' /etc/authentik/config.yml) == /opt/authentik-data/geoip/dbip-city-lite.mmdb ]]; then
|
||||
msg_info "Updating GeoIP databases"
|
||||
mkdir -p /opt/authentik-data/geoip
|
||||
for EDITION in city asn; do
|
||||
for MONTH in "$(date -u +%Y-%m)" "$(date -u -d "$(date -u +%Y-%m-15) -1 month" +%Y-%m)"; do
|
||||
if curl -fsL "https://download.db-ip.com/free/dbip-${EDITION}-lite-${MONTH}.mmdb.gz" | gunzip >"/opt/authentik-data/geoip/dbip-${EDITION}-lite.mmdb.tmp" 2>/dev/null; then
|
||||
mv "/opt/authentik-data/geoip/dbip-${EDITION}-lite.mmdb.tmp" "/opt/authentik-data/geoip/dbip-${EDITION}-lite.mmdb"
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
rm -f /opt/authentik-data/geoip/*.tmp
|
||||
if [[ -s /opt/authentik-data/geoip/dbip-city-lite.mmdb ]]; then
|
||||
msg_ok "Updated GeoIP databases"
|
||||
else
|
||||
msg_warn "The GeoIP databases could not be downloaded from download.db-ip.com. authentik works without them; the next update tries again."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -d /opt/authentik-data/blueprints ]]; then
|
||||
msg_info "Moving blueprints to presistent directory"
|
||||
cp -r /opt/authentik/blueprints /opt/authentik-data/
|
||||
rm -r /opt/authentik/blueprints
|
||||
$STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +
|
||||
yq -i ".blueprints_dir = \"/opt/authentik-data/blueprints\"" /etc/authentik/config.yml
|
||||
msg_ok "blueprints moved to presistent directory"
|
||||
msg_warn "The blueprints provided by authentik are always overwritten when updated! Only manually created custom blueprints remain unchanged between updates."
|
||||
fi
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
|
||||
UV_PYTHON_INSTALL_DIR="/usr/local/bin" PYTHON_VERSION="3.14.10" UV_PROJECT_DIR="/opt/authentik" setup_uv
|
||||
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
|
||||
# Also catch installs whose version marker already reads 2026.8.x but whose units were never migrated
|
||||
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]] || grep -q "ExecStart=/opt/authentik/authentik-server" /etc/systemd/system/authentik-server.service; then
|
||||
msg_info "Updating Worker and Server config (from $MAJOR.$MINOR)"
|
||||
cat <<EOF >>/etc/default/authentik-server
|
||||
RUST_BACKTRACE=full
|
||||
EOF
|
||||
cat <<EOF >>/etc/default/authentik-worker
|
||||
RUST_BACKTRACE=full
|
||||
EOF
|
||||
msg_ok "Updated Worker and Server config (from $MAJOR.$MINOR)"
|
||||
|
||||
msg_info "Configuring rust"
|
||||
cd /opt/authentik
|
||||
$STD rustup install
|
||||
$STD rustup default "$(sed -n 's/channel = "\(.*\)"/\1/p' rust-toolchain.toml)"
|
||||
msg_ok "Configured rust"
|
||||
|
||||
msg_info "Updating web"
|
||||
export NODE_ENV="production"
|
||||
cd /opt/authentik
|
||||
$STD node ./scripts/node/lint-runtime.ts ./web
|
||||
cd /opt/authentik/web
|
||||
$STD pnpm install --frozen-lockfile
|
||||
$STD pnpm run build
|
||||
$STD pnpm run build:sfe
|
||||
msg_ok "Updated web"
|
||||
|
||||
msg_info "Updating outposts"
|
||||
cd /opt/authentik
|
||||
mkdir -p /opt/authentik/bin
|
||||
export CGO_ENABLED="1"
|
||||
export CC="$(arch_resolve "x86_64" "aarch64")-linux-gnu-gcc"
|
||||
$STD go mod download
|
||||
$STD go build -o /opt/authentik/bin/ldap ./cmd/ldap
|
||||
$STD go build -o /opt/authentik/bin/rac ./cmd/rac
|
||||
$STD go build -o /opt/authentik/bin/radius ./cmd/radius
|
||||
msg_ok "Updated outposts"
|
||||
|
||||
msg_info "Building binary. It may take more than 10 minutes, please be patient."
|
||||
export AWS_LC_FIPS_SYS_CC="clang"
|
||||
cd /opt/authentik
|
||||
$STD cargo build --package authentik --no-default-features --features core --locked --release
|
||||
cp ./target/release/authentik /opt/authentik/bin/
|
||||
rm -r ./target
|
||||
msg_ok "Built worker"
|
||||
|
||||
msg_info "Updating python server"
|
||||
export UV_NO_BINARY_PACKAGE="cryptography lxml python-kadmin-rs xmlsec"
|
||||
export UV_COMPILE_BYTECODE="1"
|
||||
export UV_LINK_MODE="copy"
|
||||
export UV_NATIVE_TLS="1"
|
||||
export RUSTUP_PERMIT_COPY_RENAME="true"
|
||||
export UV_PYTHON_INSTALL_DIR="/usr/local/bin"
|
||||
cd /opt/authentik
|
||||
for attempt in 1 2 3; do
|
||||
if [[ $attempt -eq 3 ]]; then
|
||||
$STD uv sync --locked --no-install-project --no-dev
|
||||
break
|
||||
msg_info "Updating services (from $MAJOR.$MINOR)"
|
||||
sed -i "s|ExecStart=/opt/authentik/authentik-server|ExecStart=/opt/authentik/bin/authentik server|g" /etc/systemd/system/authentik-server.service
|
||||
sed -i "s|ExecStart=/opt/authentik/authentik-worker worker|ExecStart=/opt/authentik/bin/authentik worker|g" /etc/systemd/system/authentik-worker.service
|
||||
sed -i "s|ExecStart=/opt/authentik/ldap|ExecStart=/opt/authentik/bin/ldap|g" /etc/systemd/system/authentik-ldap.service
|
||||
sed -i "s|ExecStart=/opt/authentik/radius|ExecStart=/opt/authentik/bin/radius|g" /etc/systemd/system/authentik-radius.service
|
||||
sed -i "s|ExecStart=/opt/authentik/rac|ExecStart=/opt/authentik/bin/rac|g" /etc/systemd/system/authentik-rac.service
|
||||
systemctl daemon-reload
|
||||
msg_ok "Updated services (from $MAJOR.$MINOR)"
|
||||
fi
|
||||
$STD uv sync --locked --no-install-project --no-dev && break
|
||||
msg_warn "uv sync attempt $attempt failed, retrying..."
|
||||
sleep $((attempt * 15))
|
||||
done
|
||||
chown -R authentik:authentik /opt/authentik
|
||||
msg_ok "Updated python server"
|
||||
|
||||
cp -r /opt/authentik/blueprints /opt/authentik-data/
|
||||
rm -r /opt/authentik/blueprints
|
||||
$STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +
|
||||
msg_info "Updating Worker and Server config"
|
||||
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-server|g" /etc/default/authentik-server
|
||||
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-worker|g" /etc/default/authentik-worker
|
||||
msg_ok "Updated Worker and Server config"
|
||||
|
||||
# Also catch installs whose version marker already reads 2026.8.x but whose units were never migrated
|
||||
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]] || grep -q "ExecStart=/opt/authentik/authentik-server" /etc/systemd/system/authentik-server.service; then
|
||||
msg_info "Updating Worker and Server config (from $MAJOR.$MINOR)"
|
||||
cat <<EOF >>/etc/default/authentik-server
|
||||
RUST_BACKTRACE=full
|
||||
EOF
|
||||
cat <<EOF >>/etc/default/authentik-worker
|
||||
RUST_BACKTRACE=full
|
||||
EOF
|
||||
msg_ok "Updated Worker and Server config (from $MAJOR.$MINOR)"
|
||||
|
||||
msg_info "Updating services (from $MAJOR.$MINOR)"
|
||||
sed -i "s|ExecStart=/opt/authentik/authentik-server|ExecStart=/opt/authentik/bin/authentik server|g" /etc/systemd/system/authentik-server.service
|
||||
sed -i "s|ExecStart=/opt/authentik/authentik-worker worker|ExecStart=/opt/authentik/bin/authentik worker|g" /etc/systemd/system/authentik-worker.service
|
||||
sed -i "s|ExecStart=/opt/authentik/ldap|ExecStart=/opt/authentik/bin/ldap|g" /etc/systemd/system/authentik-ldap.service
|
||||
sed -i "s|ExecStart=/opt/authentik/radius|ExecStart=/opt/authentik/bin/radius|g" /etc/systemd/system/authentik-radius.service
|
||||
sed -i "s|ExecStart=/opt/authentik/rac|ExecStart=/opt/authentik/bin/rac|g" /etc/systemd/system/authentik-rac.service
|
||||
msg_info "Updating services"
|
||||
sed -i 's/authentik Go Server (API Gateway)/authentik Server/g' /etc/systemd/system/authentik-server.service
|
||||
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service; then
|
||||
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service
|
||||
fi
|
||||
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service; then
|
||||
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
msg_ok "Updated services (from $MAJOR.$MINOR)"
|
||||
fi
|
||||
msg_ok "Updated services"
|
||||
|
||||
msg_info "Updating Worker and Server config"
|
||||
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-server|g" /etc/default/authentik-server
|
||||
sed -i "s|/dev/shm\/\?$|/dev/shm/authentik-worker|g" /etc/default/authentik-worker
|
||||
msg_ok "Updated Worker and Server config"
|
||||
msg_info "Migrating database"
|
||||
$STD runuser -u authentik -- bash -c 'set -a; . /etc/default/authentik-server; set +a; mkdir -p "$TMPDIR" "$PROMETHEUS_MULTIPROC_DIR"; cd /opt/authentik && python -m lifecycle.migrate'
|
||||
msg_ok "Migrated database"
|
||||
# This stage is done: the next one, or the next run, starts from here
|
||||
rm -f "$HOME/.authentik.pending"
|
||||
read -r MAJOR MINOR PATCH <<<"$(sed 's/^version\///; s/\./ /g' <<<"$AUTHENTIK_VERSION")"
|
||||
|
||||
msg_info "Updating services"
|
||||
sed -i 's/authentik Go Server (API Gateway)/authentik Server/g' /etc/systemd/system/authentik-server.service
|
||||
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service; then
|
||||
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service
|
||||
fi
|
||||
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service; then
|
||||
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
msg_ok "Updated services"
|
||||
msg_info "Starting Services"
|
||||
systemctl start authentik-server authentik-worker
|
||||
if [[ $(systemctl is-enabled authentik-ldap) == enabled ]]; then
|
||||
systemctl start authentik-ldap
|
||||
fi
|
||||
if [[ $(systemctl is-enabled authentik-rac) == enabled ]]; then
|
||||
systemctl start authentik-rac
|
||||
fi
|
||||
if [[ $(systemctl is-enabled authentik-radius) == enabled ]]; then
|
||||
systemctl start authentik-radius
|
||||
fi
|
||||
msg_ok "Started Services"
|
||||
|
||||
msg_info "Starting Services"
|
||||
systemctl start authentik-server authentik-worker
|
||||
if [[ $(systemctl is-enabled authentik-ldap) == enabled ]]; then
|
||||
systemctl start authentik-ldap
|
||||
fi
|
||||
if [[ $(systemctl is-enabled authentik-rac) == enabled ]]; then
|
||||
systemctl start authentik-rac
|
||||
fi
|
||||
if [[ $(systemctl is-enabled authentik-radius) == enabled ]]; then
|
||||
systemctl start authentik-radius
|
||||
fi
|
||||
msg_ok "Started Services"
|
||||
fi
|
||||
msg_info "Waiting for authentik to become ready (up to 300s)"
|
||||
CODE=000
|
||||
for _ in {1..60}; do
|
||||
CODE=$(curl -ksI -m 3 https://127.0.0.1:9443/ | sed -n 's,^HTTP/[0-9.]* \([0-9]\{3\}\).*,\1,p' || true)
|
||||
[[ "$CODE" == "200" || "$CODE" == "302" ]] && break
|
||||
sleep 5
|
||||
done
|
||||
if [[ "$CODE" == "200" || "$CODE" == "302" ]]; then
|
||||
msg_ok "authentik is responding (HTTP ${CODE})"
|
||||
else
|
||||
msg_warn "authentik did not start responding (HTTP ${CODE}) within 300s. It may still be booting (migrations after an upgrade can take longer); check: journalctl -eu authentik-server"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
msg_ok "Updated successfully!"
|
||||
exit
|
||||
}
|
||||
@@ -214,18 +280,41 @@ build_container
|
||||
|
||||
msg_info "Attaching data storage volume"
|
||||
ct_attach_volume 1 /opt/authentik-data
|
||||
$STD ct_exec bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
|
||||
cp /opt/authentik/tests/geoip/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \
|
||||
cp /opt/authentik/tests/geoip/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \
|
||||
$STD ct_exec bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}"
|
||||
# The DB-IP Lite databases authentik's own image ships; DB-IP publishes one edition a month
|
||||
for EDITION in city asn; do
|
||||
for MONTH in "$(date -u +%Y-%m)" "$(date -u -d "$(date -u +%Y-%m-15) -1 month" +%Y-%m)"; do
|
||||
if ct_exec bash -c "curl -fsL https://download.db-ip.com/free/dbip-${EDITION}-lite-${MONTH}.mmdb.gz | gunzip >/opt/authentik-data/geoip/dbip-${EDITION}-lite.mmdb.tmp && mv /opt/authentik-data/geoip/dbip-${EDITION}-lite.mmdb.tmp /opt/authentik-data/geoip/dbip-${EDITION}-lite.mmdb" 2>/dev/null; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
$STD ct_exec bash -c "rm -f /opt/authentik-data/geoip/*.tmp; \
|
||||
cp -r /opt/authentik/blueprints /opt/authentik-data/; \
|
||||
rm -r /opt/authentik/blueprints; \
|
||||
find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +"
|
||||
msg_ok "Attached data storage volume"
|
||||
if ! ct_exec test -s /opt/authentik-data/geoip/dbip-city-lite.mmdb; then
|
||||
msg_warn "The GeoIP databases could not be downloaded from download.db-ip.com. authentik works without them; the next update tries again."
|
||||
fi
|
||||
|
||||
msg_info "Starting Services"
|
||||
ct_exec systemctl enable -q --now authentik-server authentik-worker
|
||||
msg_ok "Started Services"
|
||||
|
||||
msg_info "Waiting for authentik to become ready (up to 300s)"
|
||||
CODE=000
|
||||
for _ in {1..60}; do
|
||||
CODE=$(ct_exec curl -ksI -m 3 https://127.0.0.1:9443/ | sed -n 's,^HTTP/[0-9.]* \([0-9]\{3\}\).*,\1,p' || true)
|
||||
[[ "$CODE" == "200" || "$CODE" == "302" ]] && break
|
||||
sleep 5
|
||||
done
|
||||
if [[ "$CODE" == "200" || "$CODE" == "302" ]]; then
|
||||
msg_ok "authentik is responding (HTTP ${CODE})"
|
||||
else
|
||||
msg_warn "authentik did not start responding (HTTP ${CODE}) within 300s. It may still be booting (first boot runs migrations); check inside the container with journalctl -eu authentik-server"
|
||||
fi
|
||||
|
||||
description
|
||||
|
||||
msg_ok "Completed successfully!\n"
|
||||
|
||||
@@ -32,6 +32,12 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "kyoo-ffmpeg" "zoriya/ffmpeg"; then
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kyoo-ffmpeg" "zoriya/ffmpeg" "prebuild" "latest" "/opt/kyoo-ffmpeg" "ffmpeg-*-linux-$(arch_resolve).tar.xz"
|
||||
ln -sf /opt/kyoo-ffmpeg/ffmpeg /opt/kyoo-ffmpeg/ffprobe /usr/local/bin/
|
||||
systemctl restart kyoo-transcoder
|
||||
fi
|
||||
|
||||
if check_for_gh_release "kyoo" "zoriya/Kyoo"; then
|
||||
msg_info "Stopping Kyoo"
|
||||
systemctl stop kyoo-scanner kyoo-api kyoo-transcoder kyoo-auth
|
||||
|
||||
+12
-1
@@ -25,10 +25,21 @@ function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
if [[ ! -f /usr/share/keyrings/mysql.gpg ]]; then
|
||||
if [[ ! -f /etc/apt/sources.list.d/mysql.sources ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ -f /usr/share/keyrings/mysql.gpg ]]; then
|
||||
setup_deb822_repo \
|
||||
"mysql" \
|
||||
"https://repo.mysql.com/RPM-GPG-KEY-mysql-2025" \
|
||||
"http://repo.mysql.com/apt/$(get_os_info id)" \
|
||||
"$(get_os_info codename)" \
|
||||
"$(sed -n 's/^Components: //p' /etc/apt/sources.list.d/mysql.sources)"
|
||||
rm -f /usr/share/keyrings/mysql.gpg
|
||||
fi
|
||||
|
||||
msg_info "Updating ${APP} LXC"
|
||||
apt_update_safe
|
||||
$STD apt -y upgrade
|
||||
|
||||
+4
-1
@@ -56,8 +56,11 @@ function update_script() {
|
||||
msg_warn "The lockfile of this release is out of date, resolving dependencies without it"
|
||||
$STD pnpm install --no-frozen-lockfile
|
||||
}
|
||||
# tsc 7 (Go) ignores NODE_OPTIONS; four checkers no longer fit in 10 GB, one with GOMEMLIMIT peaks at ~8 GB
|
||||
sed -i 's/"compilerOptions": {/&\n "checkers": 1,/' server/tsconfig.json
|
||||
export GOMEMLIMIT=6GiB
|
||||
$STD pnpm build
|
||||
unset NODE_OPTIONS
|
||||
unset NODE_OPTIONS GOMEMLIMIT
|
||||
msg_ok "Rebuilt Paperclip"
|
||||
|
||||
msg_info "Updating Agent CLIs"
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ function update_script() {
|
||||
msg_info "Restoring Data"
|
||||
cp -R /opt/wikijs-backup/* /opt/wikijs
|
||||
if [[ "$SQLITE_INSTALL" == "true" ]]; then
|
||||
$STD npm rebuild sqlite3
|
||||
$STD npm --prefix /opt/wikijs rebuild sqlite3
|
||||
fi
|
||||
rm -rf /opt/wikijs-backup
|
||||
msg_ok "Restored Data"
|
||||
|
||||
@@ -57,7 +57,7 @@ PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="authentik" PG_DB_USER="authentik" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
||||
|
||||
XMLSEC_VERSION="1.3.13"
|
||||
AUTHENTIK_VERSION="version/2026.8.6"
|
||||
AUTHENTIK_VERSION="version/2026.11.0"
|
||||
fetch_and_deploy_gh_release "xmlsec" "lsh123/xmlsec" "tarball" "${XMLSEC_VERSION}" "/opt/xmlsec"
|
||||
fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
|
||||
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
|
||||
@@ -108,7 +108,6 @@ DatabaseDirectory /opt/authentik-data/geoip
|
||||
RetryFor 5m
|
||||
Parallelism 1
|
||||
EOF
|
||||
|
||||
echo "#39 19 * * 6,4 /usr/bin/geoipupdate -f /usr/local/etc/GeoIP.conf" | crontab -
|
||||
|
||||
msg_info "Building binary. It may take more than 10 minutes, please be patient."
|
||||
@@ -143,8 +142,8 @@ mkdir -p /etc/authentik
|
||||
mv /opt/authentik/authentik/lib/default.yml /etc/authentik/config.yml
|
||||
yq -i ".secret_key = \"$(random_password 64)\"" /etc/authentik/config.yml
|
||||
yq -i ".postgresql.password = \"${PG_DB_PASS}\"" /etc/authentik/config.yml
|
||||
yq -i ".events.context_processors.geoip = \"/opt/authentik-data/geoip/GeoLite2-City.mmdb\"" /etc/authentik/config.yml
|
||||
yq -i ".events.context_processors.asn = \"/opt/authentik-data/geoip/GeoLite2-ASN.mmdb\"" /etc/authentik/config.yml
|
||||
yq -i ".events.context_processors.geoip = \"/opt/authentik-data/geoip/dbip-city-lite.mmdb\"" /etc/authentik/config.yml
|
||||
yq -i ".events.context_processors.asn = \"/opt/authentik-data/geoip/dbip-asn-lite.mmdb\"" /etc/authentik/config.yml
|
||||
yq -i ".blueprints_dir = \"/opt/authentik-data/blueprints\"" /etc/authentik/config.yml
|
||||
yq -i ".cert_discovery_dir = \"/opt/authentik-data/certs\"" /etc/authentik/config.yml
|
||||
yq -i ".email.template_dir = \"/opt/authentik-data/templates\"" /etc/authentik/config.yml
|
||||
|
||||
@@ -368,7 +368,9 @@ User=root
|
||||
EnvironmentFile=/etc/frigate.env
|
||||
ExecStartPre=+/usr/bin/systemctl restart go2rtc.service
|
||||
ExecStartPre=+rm -f /dev/shm/logs/frigate/current
|
||||
ExecStart=/bin/bash -c "bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run 2> >(/usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S ' >&2) | /usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S '"
|
||||
ExecStart=/bin/bash -c 'exec > >(/usr/bin/ts "%%Y-%%m-%%d %%H:%%M:%%.S ") 2>&1; exec bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run'
|
||||
KillMode=mixed
|
||||
TimeoutStopSec=60
|
||||
StandardOutput=file:/dev/shm/logs/frigate/current
|
||||
StandardError=file:/dev/shm/logs/frigate/current
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ $STD apt install -y \
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
setup_ffmpeg
|
||||
fetch_and_deploy_gh_release "kyoo-ffmpeg" "zoriya/ffmpeg" "prebuild" "latest" "/opt/kyoo-ffmpeg" "ffmpeg-*-linux-$(arch_resolve).tar.xz"
|
||||
ln -sf /opt/kyoo-ffmpeg/ffmpeg /opt/kyoo-ffmpeg/ffprobe /usr/local/bin/
|
||||
setup_hwaccel
|
||||
PG_VERSION="18" setup_postgresql
|
||||
PG_DB_NAME="kyoo" PG_DB_USER="kyoo" setup_postgresql_db
|
||||
|
||||
@@ -14,11 +14,6 @@ setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
lsb-release
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
RELEASE_REPO="mysql-8.0"
|
||||
RELEASE_AUTH="mysql_native_password"
|
||||
prompt="${var_mysql_lts:-}"
|
||||
@@ -28,26 +23,14 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||
RELEASE_AUTH="caching_sha2_password"
|
||||
fi
|
||||
|
||||
setup_deb822_repo \
|
||||
"mysql" \
|
||||
"https://repo.mysql.com/RPM-GPG-KEY-mysql-2025" \
|
||||
"http://repo.mysql.com/apt/$(get_os_info id)" \
|
||||
"$(get_os_info codename)" \
|
||||
"${RELEASE_REPO}"
|
||||
|
||||
msg_info "Installing MySQL"
|
||||
curl -fsSL https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor -o /usr/share/keyrings/mysql.gpg
|
||||
if [ "$(lsb_release -si)" = "Debian" ]; then
|
||||
cat <<EOF >/etc/apt/sources.list.d/mysql.sources
|
||||
Types: deb
|
||||
URIs: http://repo.mysql.com/apt/debian
|
||||
Suites: $(lsb_release -sc)
|
||||
Components: ${RELEASE_REPO}
|
||||
Signed-By: /usr/share/keyrings/mysql.gpg
|
||||
EOF
|
||||
else
|
||||
cat <<EOF >/etc/apt/sources.list.d/mysql.sources
|
||||
Types: deb
|
||||
URIs: http://repo.mysql.com/apt/ubuntu
|
||||
Suites: $(lsb_release -sc)
|
||||
Components: ${RELEASE_REPO}
|
||||
Signed-By: /usr/share/keyrings/mysql.gpg
|
||||
EOF
|
||||
fi
|
||||
apt_update_safe
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
$STD apt install -y \
|
||||
mysql-community-client \
|
||||
|
||||
@@ -36,8 +36,11 @@ $STD pnpm install --frozen-lockfile || {
|
||||
msg_warn "The lockfile of this release is out of date, resolving dependencies without it"
|
||||
$STD pnpm install --no-frozen-lockfile
|
||||
}
|
||||
# tsc 7 (Go) ignores NODE_OPTIONS; four checkers no longer fit in 10 GB, one with GOMEMLIMIT peaks at ~8 GB
|
||||
sed -i 's/"compilerOptions": {/&\n "checkers": 1,/' server/tsconfig.json
|
||||
export GOMEMLIMIT=6GiB
|
||||
$STD pnpm build
|
||||
unset NODE_OPTIONS
|
||||
unset NODE_OPTIONS GOMEMLIMIT
|
||||
msg_ok "Built Paperclip"
|
||||
|
||||
msg_info "Installing Agent CLIs"
|
||||
|
||||
Reference in new issue
Block a user