Remove Python uv cache clean and simplify journalctl
Removed the cache cleaning for Python uv and simplified journalctl commands.
This commit is contained in:
parent
c727405fe8
commit
987e7ee790
@ -816,8 +816,6 @@ cleanup_lxc() {
|
||||
|
||||
# Python pip
|
||||
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
|
||||
if command -v npm &>/dev/null; then $STD npm cache clean --force || true; fi
|
||||
# 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 journalctl &>/dev/null; then
|
||||
# Journal rotation may fail if systemd-journald not fully initialized yet
|
||||
journalctl --rotate 2>/dev/null || true
|
||||
journalctl --vacuum-time=10m 2>/dev/null || true
|
||||
$STD journalctl --vacuum-time=10m || true
|
||||
fi
|
||||
msg_ok "Cleaned"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user