Merge archive clearing into single script
This commit is contained in:
parent
3cc31fc602
commit
6b1bcb3326
@ -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/*
|
||||||
|
@ -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…
Reference in New Issue
Block a user