mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-30 18:36:27 +01:00
fix(authentik): migrate systemd units when still on pre-2026.8 paths (#18307)
The ExecStart migration only ran when ~/.authentik reported a version below 2026.8. Installs whose marker already reads 2026.8.x but whose units were never migrated kept pointing to the removed /opt/authentik/authentik-server binary and failed with 203/EXEC. Also run the migration when the server unit still has the old path. Fixes #18306
This commit is contained in:
+2
-1
@@ -155,7 +155,8 @@ function update_script() {
|
||||
rm -r /opt/authentik/blueprints
|
||||
$STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +
|
||||
|
||||
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]]; then
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user