diff --git a/tools/qdata b/tools/qdata index c9745900..5ca61e45 100755 --- a/tools/qdata +++ b/tools/qdata @@ -28,6 +28,8 @@ if [ -f "apikey.txt" ]; then apikey=$(cat "apikey.txt") elif [ -f "${script_dir}/../apikey.txt" ]; then apikey=$(cat "${script_dir}/../apikey.txt") +elif [ -f "${HOME}/qortal/apikey.txt" ]; then + apikey=$(cat "${HOME}/qortal/apikey.txt") fi method=$1 diff --git a/tools/qort b/tools/qort index dcce34d2..79712b1b 100755 --- a/tools/qort +++ b/tools/qort @@ -71,6 +71,8 @@ if [ -f "apikey.txt" ]; then apikey=$(cat "apikey.txt") elif [ -f "${script_dir}/../apikey.txt" ]; then apikey=$(cat "${script_dir}/../apikey.txt") +elif [ -f "${HOME}/qortal/apikey.txt" ]; then + apikey=$(cat "${HOME}/qortal/apikey.txt") fi if [ "${url:0:4}" != "http" ]; then