diff options
author | Georg | 2021-07-21 13:33:34 +0200 |
---|---|---|
committer | Georg | 2021-07-21 13:33:34 +0200 |
commit | 28cefabe617a2cb32e7efcc1f283a5f24dd5cb69 (patch) | |
tree | 002d73a98ff7a841b80b3c7af3128cdec9321adc /cron/cron.daily | |
parent | d66638c46e03e13b43bf44667e0c9dd50357ef60 (diff) | |
download | system-28cefabe617a2cb32e7efcc1f283a5f24dd5cb69.tar.gz system-28cefabe617a2cb32e7efcc1f283a5f24dd5cb69.tar.bz2 system-28cefabe617a2cb32e7efcc1f283a5f24dd5cb69.zip |
Initial Cron Run
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'cron/cron.daily')
-rw-r--r-- | cron/cron.daily/beauties-cleanup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cron/cron.daily/beauties-cleanup.sh b/cron/cron.daily/beauties-cleanup.sh new file mode 100644 index 0000000..d6c83a4 --- /dev/null +++ b/cron/cron.daily/beauties-cleanup.sh @@ -0,0 +1,6 @@ +#!/bin/sh +BEFORE=$(du -h /opt/beauties/data/storage) +echo "#universe +++ $BEFORE - Starting cleanup ..." | nc -N 127.0.0.2 2424 +find /opt/beauties/data/storage/* -mtime +60 -exec rm {} \; | nc -N 127.0.0.2 2424 +AFTER=$(du -h /opt/beauties/data/storage) +echo "#universe +++ $AFTER - Cleanup complete." | nc -N 127.0.0.2 2424 |