aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-09-21 18:48:04 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-09-21 18:48:04 +0300
commita6a58c581559368f91d612220a1410ded50207fd (patch)
treed5d8f85fb2dea5d0a6df9e1cf55c8239adc90bd6
parentdd662dccc2bf305318606c1cfb8df60f2cfcfce4 (diff)
downloadarching-kaos-tools-a6a58c581559368f91d612220a1410ded50207fd.tar.gz
arching-kaos-tools-a6a58c581559368f91d612220a1410ded50207fd.tar.bz2
arching-kaos-tools-a6a58c581559368f91d612220a1410ded50207fd.zip
More debugging
-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"