5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-01-18 13:13:38 +00:00

fix: independiente de la posición

This commit is contained in:
f 2025-01-16 13:47:29 -03:00
parent 8ddfa0b065
commit 5828d9f916
No known key found for this signature in database

View file

@ -5,7 +5,7 @@ test -n "$1"
# Volcar y eliminar todos los access logs de dos días atrás
date="`dateadd today -1d`"
file="/srv/_storage/$1-${date}.psql.gz"
file="`realpath $0 | xargs dirname `/../_storage/$1-${date}.psql.gz"
test -n "${date}"
test ! -s "${file}"