From 60633e776cf4c1ce298a6fd83a59045dd756e056 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 11 Feb 2022 10:36:31 +0200 Subject: Change order of procedure, leaving name publishing for the end --- bin/zchain-reset | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/zchain-reset') diff --git a/bin/zchain-reset b/bin/zchain-reset index b48907a..e24c161 100755 --- a/bin/zchain-reset +++ b/bin/zchain-reset @@ -12,10 +12,6 @@ reset (){ cp $ZGENESIS $ZLATEST if [ $? != 0 ]; then exit 1; fi - echo "Publishing new (reset) ZLATEST" - ipfs name publish --key=zchain /ipfs/$(cat $ZLATEST) - if [ $? != 0 ]; then exit 1; fi - echo "Make sure /zarchive folder exists within IPFS FS" ipfs files mkdir /zarchive if [ $? != 0 ]; then echo "Folder already there"; fi @@ -33,6 +29,10 @@ reset (){ ipfs files cp /ipfs/$CZLATEST /zlatest if [ $? != 0 ]; then exit 1; fi + echo "Publishing new (reset) ZLATEST" + ipfs name publish --key=zchain /ipfs/$(cat $ZLATEST) + if [ $? != 0 ]; then exit 1; fi + echo "Reset was successful" exit 0 } -- cgit v1.2.3