Skip to content
Snippets Groups Projects
Commit f433c5a8 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

setup deletion of old logs (>2 weeks)

parent 307c37cd
Branches
Tags
No related merge requests found
...@@ -62,6 +62,7 @@ runcmd: ...@@ -62,6 +62,7 @@ runcmd:
- echo "Current user is $(whoami)" - echo "Current user is $(whoami)"
- sudo -u airflow git clone https://gitlab.jsc.fz-juelich.de/eflows4hpc-wp2/data-logistics-service.git ./data-logistics-service - sudo -u airflow git clone https://gitlab.jsc.fz-juelich.de/eflows4hpc-wp2/data-logistics-service.git ./data-logistics-service
- cd ./data-logistics-service - cd ./data-logistics-service
- crontab -l | { cat ; echo '@daily root find /persistent_data/logs -mtime +13 -type f -delete'; } | crontab - # setup log clearing crontab
- touch /finished_cloudinit - touch /finished_cloudinit
final_message: "The system is finally up, after $UPTIME seconds" final_message: "The system is finally up, after $UPTIME seconds"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment