Add log file cleanup to apt cache cleaner script

This commit is contained in:
Anduin Xue 2025-05-31 15:59:39 +00:00
parent 4a036ecd6b
commit ef70895ac2
No known key found for this signature in database
GPG Key ID: D33FA9407A6BE728
1 changed files with 5 additions and 1 deletions

View File

@ -6,4 +6,8 @@ print_ok "Cleaning up apt cache..."
apt update
apt clean -y
rm -rf /var/cache/apt/archives/*
judge "Clean up apt cache"
judge "Clean up apt cache"
print_ok "Cleaning up log files..."
rm -rf /var/log/*
judge "Clean up log files"