Merge archive clearing into single script

This commit is contained in:
Luke Murphy 2020-02-11 14:35:07 +01:00
parent 3cc31fc602
commit 6b1bcb3326
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,10 @@
#!/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/*

View File

@ -1,5 +1,4 @@
SHELL=/bin/bash
# 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/voicegardens.org/bin/clear-archives | tee -a /var/log/voicegardens.org.log
0 9 * * * /var/www/doesitsparkjoy.voicegardens.org/bin/clear-archives | tee -a /var/log/voicegardens.org.log