debian-health.sh: ufw check fails under cron PATH (false ERROR) #3
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/lazy-admin-tools#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Harden the ufw status check in
debian-health.shso it worksregardless of cron's minimal PATH.
Reason
The cron run on typhon (2026-08-13 06:00) produced a direct cron
error mail:
and correspondingly a false alert in the actual health report:
Cause: cron sets a minimal
PATH=/usr/bin:/bin(seeX-Cron-Envinthe cron mail header).
ufwtypically lives under/usr/sbin/ufwand was therefore not found by the cron job - even though ufw was
actually running (verified interactively via
doas/sudo, seeDAW/lazy-admin-tools#1). The script produced a false ERROR alert
under cron as a result.
Scope
ufwcall in the script to its full path(
/usr/sbin/ufw), or explicitly extendPATHat the top of thescript to include the sbin directories
script (
ss,systemctl,apt), and harden them if neededfull PATH)
Cross-repository context
Affects
health/debian-health.shin DAW/lazy-admin-tools#1, surfacedthrough production cron operation on typhon (DAW/infrastruktur).
Acceptance criteria
ufwcheck works under cron's minimal PATHdebian-health.sh: ufw-Check schlaegt unter Cron-PATH fehl (false ERROR)to debian-health.sh: ufw check fails under cron PATH (false ERROR)Session 2026-08-13
set right after --- End configuration ---, so ufw (and other
sbin tools) are found even under cron's minimal PATH
PATH) on terrador
'command not found', no more false [ERROR] ufw not active