mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 02:56:22 +00:00
arreglar rutas
This commit is contained in:
parent
0062792cd0
commit
db30f6f6fb
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ set -e
|
|||
# Volcar y eliminar todos los access logs del día anterior
|
||||
date=`date +%F`
|
||||
|
||||
psql -h postgresql "${DATABASE:-sutty}" sutty <<SQL | gzip > "/srv/http/_storage/${date}.psql.gz"
|
||||
psql -h postgresql "${DATABASE:-sutty}" sutty <<SQL | gzip > "/srv/_storage/${date}.psql.gz"
|
||||
begin;
|
||||
copy (select * from access_logs where created_at < '${date}') to stdout;
|
||||
delete from access_logs where created_at < '${date}';
|
||||
|
|
|
@ -5,6 +5,6 @@ check program cleanup
|
|||
if status != 0 then alert
|
||||
|
||||
check program access_logs
|
||||
with path "/srv/http/bin/access_logs" as uid "app" and gid "www-data"
|
||||
with path "/srv/bin/access_logs" as uid "app" and gid "www-data"
|
||||
every "0 0 * * *"
|
||||
if status != 0 then alert
|
||||
|
|
Loading…
Reference in a new issue