scripts/testversions: replace apikey with access

Change-Id: I4f899cc49b63b2f04f31a6df478475d7bdbab30d
This commit is contained in:
littleskunk 2020-01-16 14:37:31 +01:00
parent 1e77cb88e7
commit 0c365d157f
No known key found for this signature in database
GPG Key ID: E5C6B2C94E5BB7F9

View File

@ -50,9 +50,9 @@ shasum $(which uplink)
if [ ! -d ${main_cfg_dir}/uplink ]; then
mkdir -p ${main_cfg_dir}/uplink
api_key=$(storj-sim --config-dir=$main_cfg_dir network env GATEWAY_0_API_KEY)
access=$(storj-sim --config-dir=$main_cfg_dir network env GATEWAY_0_ACCESS)
sat_addr=$(storj-sim --config-dir=$main_cfg_dir network env SATELLITE_0_ADDR)
uplink setup --non-interactive --api-key="$api_key" --satellite-addr="$sat_addr" --config-dir="${main_cfg_dir}/uplink" --enc.encryption-key="TestEncKey"
uplink import --access="$access" --satellite-addr="$sat_addr" --config-dir="${main_cfg_dir}/uplink" --enc.encryption-key="TestEncKey"
fi
echo -e "\nConfig directory for satellite:"