core: remove uv cache clean | remove log rotation (#340)

* core: remove uv cache clean

* Initialize functions on core.func source

Added function initialization call when sourcing core.func
This commit is contained in:
CanbiZ
2025-11-24 20:52:31 +01:00
committed by GitHub
parent 213a606fc0
commit bc31896586

View File

@@ -392,8 +392,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 clear || true; fi
# Node.js npm
if command -v npm &>/dev/null; then $STD npm cache clean --force || true; fi
# Node.js yarn
@@ -410,7 +408,6 @@ cleanup_lxc() {
if command -v composer &>/dev/null; then $STD composer clear-cache || true; fi
if command -v journalctl &>/dev/null; then
$STD journalctl --rotate || true
$STD journalctl --vacuum-time=10m || true
fi
msg_ok "Cleaned"