From f336032e2d602facd691798a19f6f474d5eb6d4e Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 19 Feb 2020 23:04:34 +0100 Subject: [PATCH] Add specificity to cron date and times --- bin/clear-archives | 2 +- bin/copy-fixed-archive | 2 +- bin/voicegardens-cron-hourly | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/clear-archives b/bin/clear-archives index 49fc789..6a1d3fd 100755 --- a/bin/clear-archives +++ b/bin/clear-archives @@ -1,6 +1,6 @@ #!/bin/bash -echo "Spitting out todays date and time ..." +echo "Spitting out todays date and time for the archive deletion cron ..." date echo "Deleting doesitsparkjoy.voicegardens.org archive ..." diff --git a/bin/copy-fixed-archive b/bin/copy-fixed-archive index 05ac19c..63bddf0 100755 --- a/bin/copy-fixed-archive +++ b/bin/copy-fixed-archive @@ -1,6 +1,6 @@ #!/bin/bash -echo "Spitting out todays date and time ..." +echo "Spitting out todays date and time for the fixed archive copying cron ..." date echo "Copying over the doesitsparkjoy.voicegardens.org fixed archive ..." diff --git a/bin/voicegardens-cron-hourly b/bin/voicegardens-cron-hourly index 72081fa..a6fa1cb 100755 --- a/bin/voicegardens-cron-hourly +++ b/bin/voicegardens-cron-hourly @@ -1,4 +1,7 @@ #!/bin/sh +echo "Spitting out todays date and time for the 0 filesize cron ..." +date + find /var/www/doesitsparkjoy.voicegardens.org/ -maxdepth 1 -type f -size 0 | xargs -I {} rm -v {} | tee -a /var/log/voicegardens.org.log find /var/www/voicegardens.org/ -maxdepth 1 -type f -size 0 | xargs -I {} rm -v {} | tee -a /var/log/voicegardens.org.log