Remove Python uv cache clean and simplify journalctl

Removed the cache cleaning for Python uv and simplified journalctl commands.
This commit is contained in:
CanbiZ 2025-11-25 18:56:15 +01:00 committed by GitHub
parent c727405fe8
commit 987e7ee790
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -816,8 +816,6 @@ cleanup_lxc() {
# Python pip # Python pip
if command -v pip &>/dev/null; then $STD pip cache purge || true; fi if command -v pip &>/dev/null; then $STD pip cache purge || true; fi
# Python uv
if command -v uv &>/dev/null; then $STD uv cache clean || true; fi
# Node.js npm # Node.js npm
if command -v npm &>/dev/null; then $STD npm cache clean --force || true; fi if command -v npm &>/dev/null; then $STD npm cache clean --force || true; fi
# Node.js yarn # Node.js yarn
@ -834,9 +832,7 @@ cleanup_lxc() {
if command -v composer &>/dev/null; then $STD composer clear-cache || true; fi if command -v composer &>/dev/null; then $STD composer clear-cache || true; fi
if command -v journalctl &>/dev/null; then if command -v journalctl &>/dev/null; then
# Journal rotation may fail if systemd-journald not fully initialized yet $STD journalctl --vacuum-time=10m || true
journalctl --rotate 2>/dev/null || true
journalctl --vacuum-time=10m 2>/dev/null || true
fi fi
msg_ok "Cleaned" msg_ok "Cleaned"
} }