Implemented az-cli warmup (#11173)

This commit is contained in:
Lars Nielsen
2025-01-06 22:09:27 +01:00
committed by GitHub
parent 19e81a096c
commit ffe7e6a514
3 changed files with 37 additions and 10 deletions

View File

@@ -19,6 +19,13 @@ if command -v journalctl; then
journalctl --vacuum-time=1s
fi
# remove redundant folders from azcli
if [[ -z "${AZURE_CONFIG_DIR}" ]]; then
rm -rf $AZURE_CONFIG_DIR/logs
rm -rf $AZURE_CONFIG_DIR/commands
rm -rf $AZURE_CONFIG_DIR/telemetry
fi
# delete all .gz and rotated file
find /var/log -type f -regex ".*\.gz$" -delete
find /var/log -type f -regex ".*\.[0-9]$" -delete