diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2022-02-11 10:36:31 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2022-02-11 10:36:31 +0200 |
commit | 60633e776cf4c1ce298a6fd83a59045dd756e056 (patch) | |
tree | 8d511ccfc03d778fa55cfbd725f3b9c178d1c98b | |
parent | b884eac5c8b3742924ca29658ec2c9e1f2e1c972 (diff) | |
download | arching-kaos-tools-60633e776cf4c1ce298a6fd83a59045dd756e056.tar.gz arching-kaos-tools-60633e776cf4c1ce298a6fd83a59045dd756e056.tar.bz2 arching-kaos-tools-60633e776cf4c1ce298a6fd83a59045dd756e056.zip |
Change order of procedure, leaving name publishing for the end
-rwxr-xr-x | bin/zchain-reset | 8 |
1 files changed, 4 insertions, 4 deletions
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 } |