Skip to content

Commit 765b502

Browse files
committed
installer: show apparmor/docker logs if services still fail after auto-fix
1 parent ae58d7b commit 765b502

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

super-install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ bootstrap_system() {
9696

9797
systemctl restart apparmor || true
9898
systemctl restart docker || true
99+
100+
if ! systemctl is-active --quiet apparmor; then
101+
echo "[super-install] ERROR: apparmor.service is not active after fix. Showing logs:"
102+
journalctl -u apparmor.service --no-pager -n 120 || true
103+
fi
104+
105+
if ! systemctl is-active --quiet docker; then
106+
echo "[super-install] WARNING: docker.service is not active after fix."
107+
systemctl status docker --no-pager -l || true
108+
fi
99109
fi
100110
fi
101111

0 commit comments

Comments
 (0)