scripts/rollingupgrade: replace apikey with access

Change-Id: I356587cdc417dabc6f15769592d70269d25051dc
This commit is contained in:
littleskunk 2020-01-16 14:00:33 +01:00
parent f42851b1ab
commit 1e77cb88e7
No known key found for this signature in database
GPG Key ID: E5C6B2C94E5BB7F9

View File

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