From 5828d9f91692ef9e03025cc4e39494966d370847 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 16 Jan 2025 13:47:29 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20independiente=20de=20la=20posici=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/rotate_table | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/rotate_table b/bin/rotate_table index 1b719098..8fd9ead7 100755 --- a/bin/rotate_table +++ b/bin/rotate_table @@ -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}"