aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-pack_z_block
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-09-11 20:57:04 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-09-11 20:57:04 +0300
commit7550b8ccb0b05d3b11a9bfcb45cee0849dc05f76 (patch)
treefd8901115994d1bcbe43f8856ecadcf0bd33ebde /bin/ak-pack_z_block
parent6732953e0cc1e4d91d19dcddb90a2fc9afdfeace (diff)
downloadarching-kaos-tools-7550b8ccb0b05d3b11a9bfcb45cee0849dc05f76.tar.gz
arching-kaos-tools-7550b8ccb0b05d3b11a9bfcb45cee0849dc05f76.tar.bz2
arching-kaos-tools-7550b8ccb0b05d3b11a9bfcb45cee0849dc05f76.zip
Workaround for IPNS unresolvable zchain links
- Adds a "zlatest" field to the configuration of the node - We update and publish the configuration each time we change the latest block of our zchain
Diffstat (limited to 'bin/ak-pack_z_block')
-rwxr-xr-xbin/ak-pack_z_block6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-pack_z_block b/bin/ak-pack_z_block
index 4c3ae16..de84638 100755
--- a/bin/ak-pack_z_block
+++ b/bin/ak-pack_z_block
@@ -145,6 +145,12 @@ then
logit "[ERROR]" "Could not copy $ZBLOCK to /zlatest"
exit 1
fi
+ ak-config publish
+ if [ "$?" -ne 0 ]
+ then
+ logit "[ERROR]" "Could not publish new configuration"
+ exit 1
+ fi
else
usage
exit 0