mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Implemented az-cli warmup (#11173)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user