Skip to content

Commit 490d5aa

Browse files
committed
Update storage account used in upload script
1 parent 2c7afc0 commit 490d5aa

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

import_digiroad_shapefiles.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ DOWNLOAD_TARGET_FILE="${DOWNLOAD_TARGET_DIR}/${AREA}_R.zip"
1616
# Load zip file containing Digiroad shapefiles if it does not exist.
1717
if [[ ! -f "$DOWNLOAD_TARGET_FILE" ]]; then
1818
mkdir -p "$DOWNLOAD_TARGET_DIR"
19-
curl -Lo "$DOWNLOAD_TARGET_FILE" "$SHP_URL"
19+
COOKIE_JAR="${DOWNLOAD_TARGET_DIR}/curl.cookies"
20+
curl -L -c "$COOKIE_JAR" -b "$COOKIE_JAR" -o "$DOWNLOAD_TARGET_FILE" "$SHP_URL"
21+
rm $COOKIE_JAR
2022
fi
2123

2224
SUB_AREAS="ITA-UUSIMAA UUSIMAA_1 UUSIMAA_2"

upload_routing_dump_to_azure.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ az account set --subscription "jore4"
1919
if ! time az storage azcopy blob upload \
2020
--source "${SQL_FILE}" \
2121
--recursive \
22-
--account-name "jore4storage" \
22+
--account-name "stjore4dev001" \
2323
--auth-mode "login" \
2424
--container "jore4-digiroad"; then
2525
cat <<EOF
2626
2727
Upload failed. Please make sure that you have installed a version of Azure CLI, which is known to work
2828
(e.g. 2.29.2, may require downgrade).
2929
30-
Alternatively you may perform the upload manually in the azure portal (storage account "jore4storage", container
30+
Alternatively you may perform the upload manually in the azure portal (storage account "stjore4dev001", container
3131
"jore4-digiroad").
3232
EOF
3333
exit 2
@@ -36,6 +36,6 @@ fi
3636
# List all artifacts inside `jore4-digiroad` in blob storage container.
3737
az storage blob list \
3838
--container-name "jore4-digiroad" \
39-
--account-name "jore4storage" \
39+
--account-name "stjore4dev001" \
4040
--auth-mode "login" \
4141
--query "[].name"

0 commit comments

Comments
 (0)