From a6a58c581559368f91d612220a1410ded50207fd Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 21 Sep 2024 18:48:04 +0300 Subject: More debugging --- lib/_ak_zchain | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/_ak_zchain b/lib/_ak_zchain index 3afe7b1..bb9c6b4 100755 --- a/lib/_ak_zchain +++ b/lib/_ak_zchain @@ -23,10 +23,12 @@ _ak_zchain_reset(){ _ak_log_error "Could not create directory /zarchive" exit 1 fi + else + _ak_log_info "/zarchive directory exists" fi _ak_log_info "Checking if /zlatest file exists" - _ak_ipfs_files_stat /zlatest > /dev/null + _ak_ipfs_files_stat /zlatest > /dev/null 2>&1 if [ $? -eq 0 ] then _ak_log_info "Archive the previous AK_ZLATEST" @@ -43,6 +45,8 @@ _ak_zchain_reset(){ _ak_log_error "Failed to remove /zlatest" exit 1 fi + else + _ak_log_info "/zlatest not found, skipping backup" fi _ak_log_info "Copying reset AK_ZLATEST" -- cgit v1.2.3