From afd2c0613df1248eda98de29f78675465c65386e Mon Sep 17 00:00:00 2001 From: mirocow Date: Tue, 16 Feb 2016 15:43:48 +0400 Subject: [PATCH] segment path fixed --- restore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restore.sh b/restore.sh index bb51568..d8120d8 100755 --- a/restore.sh +++ b/restore.sh @@ -117,9 +117,9 @@ restore() SET foreign_key_checks = 1; SET unique_checks = 1; SET sql_log_bin = 1;" done - if [ -f "$DIR/$BDD/$segment" ]; then + if [ -f "$segment" ]; then f_log "Delete segment $segment" - rm "$DIR/$BDD/$segment" + rm "$segment" fi if [ ! -f "$DIR/$BDD/$TABLE.txt.bz2" ]; then