Commit fa51baf9 authored by Ivanq's avatar Ivanq

Use new getConfig instead of getDataDir

parent e6e9c566
......@@ -49,7 +49,7 @@ fi
################################################################################
echo "Retrieving data directory..."
data_dir=`"$python_path" "$zeronet_home/zeronet.py" --silent getDataDir`
data_dir=`"$python_path" "$zeronet_home/zeronet.py" --silent getConfig | "$python_path" -c "import sys, json; config = json.load(sys.stdin); print config['data_dir']"`
privatekey=`cat "$data_dir/users.json" | "$python_path" -c "import sys, json; users = json.load(sys.stdin); print users[users.keys()[0]]['certs']['zeroid.bit']['auth_privatekey']"`
if [ $? -ne 0 ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment