0
1
Fork 0

Image trash clean

This commit is contained in:
Juan Ferrer 2021-04-02 18:02:42 +02:00
parent 7591bebe83
commit ff58f1f1c3
4 changed files with 6 additions and 2 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.407.43) stable; urgency=low
hedera-web (1.407.44) stable; urgency=low
* Initial Release.

1
debian/cron.d vendored
View File

@ -6,4 +6,5 @@ MAILTO=webmaster
0 5 * * * root hedera-web.php -m edi/update
0 5 * * * root hedera-web.php -m misc/exchange-rate
0 0 * * * root hedera-web.php -m image/sync
0 1 * * * root /usr/share/hedera-web/utils/image-clean.sh > /dev/null
0 */1 * * * root /usr/share/hedera-web/utils/update-browscap.sh > /dev/null

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.407.43",
"version": "1.407.44",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

3
utils/image-clean.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
find /mnt/storage/image/.trash/* -maxdepth 0 -type d -ctime +7 -exec rm -rf {} \;