box_walk: a leftover is an app.yaml, not the template folder
gates / gates (push) Successful in 53s

/opt/docker/stacks/<app> is the catalog's template copy and stays after a clean remove, so
every remove printed it as a leftover (2026-10-24, 9202).
This commit is contained in:
admin committed 2026-10-24 13:47:23 +02:00
1 parent 7de554e954
commit 5e196e1ab8
4 files changed
+21 -1

No files matched your search

+3 -1
View File
@@ -595,7 +595,9 @@ def remove(name):
say(f" [X] remove (keeping drive data) -> {code} {str(d)[:160]}")
time.sleep(5)
st = stack(name)
left = guest(f"ls -d /opt/docker/stacks/{name} 2>/dev/null; "
# The stack folder itself stays: it is the catalog's template copy (every app has one). An install leaves its record,
# app.yaml — that is the leftover to look for (2026-10-24: the folder alone read as a leftover after a clean remove).
left = guest(f"ls -d /opt/docker/stacks/{name}/app.yaml 2>/dev/null; "
f"docker ps -a --filter label=com.docker.compose.project={name} --format '{{{{.Names}}}}'")
say(f" [X] after remove: deployed={st.get('deployed')} leftovers={left.strip()!r}")
return code