doctor: name an interrupted rehearsal's leftover users instead of absorbing them
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
2097982ac2
commit
3f9b38ac96
1 changed files with 9 additions and 0 deletions
|
|
@ -250,6 +250,15 @@ for b in drill clone archive peer payroll cbprobe cbcopy cbnotours; do
|
||||||
[ "$FIX" = 1 ] && { timeout 60 incus delete -f "$b" >/dev/null 2>&1 && inf "reverted: deleted $b"; }
|
[ "$FIX" = 1 ] && { timeout 60 incus delete -f "$b" >/dev/null 2>&1 && inf "reverted: deleted $b"; }
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# An interrupted multiuser.sh leaves its users (and their projects) behind —
|
||||||
|
# and nothing else on this host will ever mention them. Its own cleanup is
|
||||||
|
# 'box revoke --purge + userdel'; say so rather than absorbing them silently.
|
||||||
|
for u in boxdrill1 boxdrill2; do
|
||||||
|
if getent passwd "$u" >/dev/null 2>&1; then
|
||||||
|
no "leftover rehearsal user: $u (an interrupted drill/multiuser.sh run)"
|
||||||
|
inf "fix: sudo BOX_YES=1 box revoke $u --purge && sudo userdel -r $u"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# --- the box's DNS comes from the HOST's resolver. See issue #33. -----------
|
# --- the box's DNS comes from the HOST's resolver. See issue #33. -----------
|
||||||
head_ "Host resolver — a box's DNS is forwarded through this"
|
head_ "Host resolver — a box's DNS is forwarded through this"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue