From 0ce8b434e264b0fca5bb900ba57701ee05216170 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 15 Apr 2023 20:10:50 +0300 Subject: still fixing installation --- install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 9276ed0..bb4e3f1 100755 --- a/install.sh +++ b/install.sh @@ -2,6 +2,19 @@ source ./config.sh printf "%s" $(pwd) > wam WHEREAMI="$(cat wam)" +if [[ ! -d $AK_WORKDIR ]] ; then mkdir $AK_WORKDIR ;fi +if [[ ! -d $AK_CONFIGDIR ]] ; then mkdir $AK_CONFIGDIR ;fi +if [[ ! -d $AK_BINDIR ]]; then mkdir $AK_BINDIR ;fi +if [[ ! -d $AK_ZBLOCKDIR ]]; then mkdir $AK_ZBLOCKDIR ;fi +if [[ ! -d $AK_BLOCKDIR ]]; then mkdir $AK_BLOCKDIR ;fi +if [[ ! -d $AK_DATADIR ]]; then mkdir $AK_DATADIR ;fi +if [[ ! -d $AK_ARCHIVESDIR ]]; then mkdir $AK_ARCHIVESDIR ;fi +if [[ ! -f $AK_LOGSFILE ]]; then touch $AK_LOGSFILE ;fi +if [[ ! -f $AK_GENESIS ]]; then touch $AK_GENESIS;fi +if [[ ! -f $AK_MINEDBLOCKS ]]; then mkdir $AK_MINEDBLOCKS; fi +if [[ ! -f $AK_ZBLOCKSFILE ]]; then mkdir $AK_ZBLOCKSFILE; fi +if [[ ! -f $AK_ZPAIRSFILE ]]; then mkdir $AK_ZPAIRSFILE; fi + touch $AK_WORKDIR/logs logthis(){ echo "Install script: $1" >> $AK_WORKDIR/logs -- cgit v1.2.3