Skip to content

Commit

Permalink
Merge branch 'main' into release-20231114
Browse files Browse the repository at this point in the history
  • Loading branch information
chienhanlin authored Nov 22, 2023
2 parents a688402 + 0ac9ca7 commit 27fd364
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scripts/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,6 @@ if [[ $(sudo find {{workingDirectory}}/TOE_* -type d | sudo wc -l) -gt 0 ]]; the
fi

echo "Cleaning up ssm log files"
if [[ $(sudo find /var/log/amazon/ssm -type f | sudo wc -l) -gt 0 ]]; then
echo "Deleting files within /var/log/amazon/ssm/*"
sudo find /var/log/amazon/ssm -type f -exec shred -zuf {} \;
fi
if [[ $(sudo find /var/log/amazon/ssm -type f | sudo wc -l) -gt 0 ]]; then
echo "Failed to delete /var/log/amazon/ssm"
exit 1
fi
if sudo test -d "/var/log/amazon/ssm"; then
echo "Deleting /var/log/amazon/ssm/*"
sudo rm -rf /var/log/amazon/ssm
Expand Down

0 comments on commit 27fd364

Please sign in to comment.