One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/bin/bash | |
| RUNDECK_DB_HOST='' | |
| RUNDECK_DB_USER='' | |
| RUNDECK_DB_PASSWORD='' | |
| RUNDECK_DB_NAME='' | |
| cd /var/log/rundeck/ | |
| find . -type f \( -name "*.api.log.*" -o -name "*.executions.log.*" -o -name "rundeck.log.*" -o -name "*.service.log.*" -o -name "*.jobs.log.*" -o -name "*.audit.log.*" \) -mtime +3 -exec rm {} \; | |
| cd /var/lib/rundeck/logs/rundeck/ | |
| find . -type f \( -name "*.rdlog" -o -name "*.json" -o -name "*.xml" \) -mtime +10 -exec rm {} \; | |
| find . -type d -empty -delete |