refactor(ST-mmuwreer): expliciete if-blocks voor /var/log/agent en /var/run/agent
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
62beca1f0d
commit
0be746c712
1 changed files with 8 additions and 6 deletions
|
|
@ -35,12 +35,14 @@ fi
|
|||
rm -f /var/cache/.write-test
|
||||
log "/var/cache OK (fs=${_cache_fs})"
|
||||
# Lighter warning-only check voor log/state mounts
|
||||
for _d in /var/log/agent /var/run/agent; do
|
||||
_d_fs=$(stat -f -c %T "$_d" 2>/dev/null || echo unknown)
|
||||
if [ "$_d_fs" = "tmpfs" ]; then
|
||||
log "WARN: ${_d} is tmpfs — overleeft geen container-herstart."
|
||||
fi
|
||||
done
|
||||
_logdir_fs=$(stat -f -c %T /var/log/agent 2>/dev/null || echo unknown)
|
||||
if [ "$_logdir_fs" = "tmpfs" ]; then
|
||||
log "WARN: /var/log/agent is tmpfs — overleeft geen container-herstart."
|
||||
fi
|
||||
_statedir_fs=$(stat -f -c %T /var/run/agent 2>/dev/null || echo unknown)
|
||||
if [ "$_statedir_fs" = "tmpfs" ]; then
|
||||
log "WARN: /var/run/agent is tmpfs — overleeft geen container-herstart."
|
||||
fi
|
||||
|
||||
# ----- 1. dirs op bind-mounts -------------------------------------------
|
||||
log "ensuring directories on bind-mounts"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue