Compare commits

..
Author SHA1 Message Date
MickLesk 291a125466 Frigate: stop the service cleanly
bash was the unit's main process and the default KillMode signalled the
whole cgroup, so Frigate's multiprocessing helpers died first and its
shutdown hung until systemd killed it after 90 s. Python is now the main
process and only it gets SIGTERM.
2026-12-04 08:02:23 +01:00
5 changed files with 5 additions and 39 deletions

No files matched your search

+2 -29
View File
@@ -47,8 +47,8 @@ function update_script() {
RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust
setup_yq
AUTHENTIK_VERSION="version/2026.8.7"
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L28
AUTHENTIK_VERSION="version/2026.8.6"
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L26
XMLSEC_VERSION="1.3.13"
if check_for_gh_release "geoipupdate" "maxmind/geoipupdate"; then
@@ -204,20 +204,6 @@ EOF
systemctl start authentik-radius
fi
msg_ok "Started Services"
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
msg_ok "Updated successfully!"
exit
@@ -240,19 +226,6 @@ 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"
-6
View File
@@ -32,12 +32,6 @@ 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
+1 -1
View File
@@ -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 --prefix /opt/wikijs rebuild sqlite3
$STD npm rebuild sqlite3
fi
rm -rf /opt/wikijs-backup
msg_ok "Restored Data"
+2 -1
View File
@@ -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.7"
AUTHENTIK_VERSION="version/2026.8.6"
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,6 +108,7 @@ 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."
-2
View File
@@ -25,8 +25,6 @@ $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