Browse Source

Merge archive clearing into single script

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

9
bin/clear-archives

@ -1,3 +1,10 @@
#!/bin/bash #!/bin/bash
echo "HI" echo "Spitting out todays date and time ..."
date
echo "Deleting doesitsparkjoy.voicegardens.org archive ..."
rm -rf /var/www/doesitsparkjoy.voicegardens.org/archives/*
echo "Deleting voicegardens.org archive ..."
rm -rf /var/www/voicegardens.org/archives/*

3
cron/voicegardens

@ -1,5 +1,4 @@
SHELL=/bin/bash SHELL=/bin/bash
# every morning at 09:00, clear the archives # every morning at 09:00, clear the archives
0 9 * * * /var/www/doesitsparkjoy.voicegardens.org/bin/clear-archives | tee -a /var/log/doesitsparkjoy.voicegardens.org.log 0 9 * * * /var/www/doesitsparkjoy.voicegardens.org/bin/clear-archives | tee -a /var/log/voicegardens.org.log
0 9 * * * /var/www/voicegardens.org/bin/clear-archives | tee -a /var/log/voicegardens.org.log

Loading…
Cancel
Save