diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-05-27 19:21:04 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-05-27 19:21:04 +0300 |
commit | 9c700e09321c24528ecd02455dcc6748b485c3af (patch) | |
tree | 2ae50d255f7c77eb207fccb94df673a970d0d2b0 | |
parent | 8e5d99282493dae17369505d2e2f788c45abf2f3 (diff) | |
download | arching-kaos-tools-9c700e09321c24528ecd02455dcc6748b485c3af.tar.gz arching-kaos-tools-9c700e09321c24528ecd02455dcc6748b485c3af.tar.bz2 arching-kaos-tools-9c700e09321c24528ecd02455dcc6748b485c3af.zip |
Refactoring
-rwxr-xr-x | bin/ak-cjdns-scanner | 2 | ||||
-rwxr-xr-x | bin/ak-news | 4 | ||||
-rwxr-xr-x | init.sh | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/bin/ak-cjdns-scanner b/bin/ak-cjdns-scanner index 875852d..8e3cd9d 100755 --- a/bin/ak-cjdns-scanner +++ b/bin/ak-cjdns-scanner @@ -24,8 +24,8 @@ dumpLinks \ | while read -r ip || [ -n "$ip" ] do node_info="`curl \ - -A 'akd/0.1.0; https://github.com/arching-kaos' \ --connect-timeout 3 \ + -A 'akd/0.1.0; https://github.com/arching-kaos' \ "http://[$(publictoip6 $ip)]:8610/v0/node_info" 2>/dev/null`" if [ "$?" == "0" ] then diff --git a/bin/ak-news b/bin/ak-news index 875b888..5865d15 100755 --- a/bin/ak-news +++ b/bin/ak-news @@ -73,11 +73,11 @@ _ak_modules_news_index(){ DATE="$(echo $FILE | cut -d - -f 1 | awk '{print $1}')" TITLE="$(head -n 1 $ZNEWSDIR/$FILE)" IPFS_HASH="$(ipfs add -nQ $ZNEWSDIR/$FILE)" - ONLINE="Not in zchain" + ONLINE="offzchain" grep "$IPFS_HASH" temp > /dev/null 2>&1 if [ $? -eq 0 ] then - ONLINE="On zchain" + ONLINE="on-zchain" fi printf "%3d | %5s | %52s | %10s | %56s \n"\ "$i" "$ONLINE" "$IPFS_HASH" "$DATE" "$TITLE" @@ -75,9 +75,6 @@ ipfs_zarchive_check_or_mkdir ipfs_zlatest_check_or_create -# TODO The thing is done, we are sitting on a genesis. -# We also have an IPNS name to use. - # Find scripts and create symlinks binfiles=$(ls -1 $(pwd)/bin) |