aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-20 21:16:03 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-20 21:16:03 +0300
commit9dca9167ab62c5c2306e7ea4c3243a2991071461 (patch)
tree10f983863d2184b32cbd94e055cec684761862e4
parentd2accf0f1862b81068d4df16e4b28827db245409 (diff)
downloadarching-kaos-tools-9dca9167ab62c5c2306e7ea4c3243a2991071461.tar.gz
arching-kaos-tools-9dca9167ab62c5c2306e7ea4c3243a2991071461.tar.bz2
arching-kaos-tools-9dca9167ab62c5c2306e7ea4c3243a2991071461.zip
Moving initial cache directory here
-rwxr-xr-xapi/make_cache.sh12
-rwxr-xr-xinstall.sh1
2 files changed, 4 insertions, 9 deletions
diff --git a/api/make_cache.sh b/api/make_cache.sh
index 03dab99..299cc00 100755
--- a/api/make_cache.sh
+++ b/api/make_cache.sh
@@ -1,11 +1,5 @@
#!/bin/bash
-AK_CACHE="$AK_WORKDIR/cache"
-if [ ! -d $AK_CACHE ]
-then
- mkdir $AK_CACHE
-fi
-
-ak-find-latest-mined-sblock > $AK_CACHE/ak-find-latest-mined-sblock.json
-ak-get-chain-minified > $AK_CACHE/ak-get-chain-minified.json
-ak-get-latest > $AK_CACHE/ak-get-latest.json
+ak-find-latest-mined-sblock > $AK_CACHEDIR/ak-find-latest-mined-sblock.json
+ak-get-chain-minified > $AK_CACHEDIR/ak-get-chain-minified.json
+ak-get-latest > $AK_CACHEDIR/ak-get-latest.json
diff --git a/install.sh b/install.sh
index 0b4a525..fa71fef 100755
--- a/install.sh
+++ b/install.sh
@@ -14,6 +14,7 @@ if [ ! -f $AK_GENESIS ]; then touch $AK_GENESIS;fi
if [ ! -d $AK_MINEDBLOCKSDIR ]; then mkdir $AK_MINEDBLOCKSDIR; fi
if [ ! -f $AK_ZBLOCKSFILE ]; then mkdir $AK_ZBLOCKSFILE; fi
if [ ! -f $AK_ZPAIRSFILE ]; then mkdir $AK_ZPAIRSFILE; fi
+if [ ! -d $AK_CACHEDIR ]; then mkdir $AK_CACHEDIR; fi
if [ ! -d $AK_GPGHOME ]; then mkdir $AK_GPGHOME && chmod 700 -R $AK_GPGHOME; fi
touch $AK_WORKDIR/logs