Browse Source

Add specificity to cron date and times

main
Luke Murphy 5 years ago
parent
commit
f336032e2d
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      bin/clear-archives
  2. 2
      bin/copy-fixed-archive
  3. 3
      bin/voicegardens-cron-hourly

2
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 ..."

2
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 ..."

3
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

Loading…
Cancel
Save