aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/_ak_zchain6
1 files changed, 5 insertions, 1 deletions
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"