Skip to content

Add support for unzipping to DB download from URL #1868

@AlexSkrypnyk

Description

@AlexSkrypnyk
info "Started database dump download from URL."

# Check all required values.
[ -z "${VORTEX_DB_DOWNLOAD_URL}" ] && fail "Missing required value for VORTEX_DB_DOWNLOAD_URL." && exit 1

mkdir -p "${VORTEX_DB_DIR}"

curl -Ls "${VORTEX_DB_DOWNLOAD_URL}" -o "${VORTEX_DB_DIR}/${VORTEX_DB_FILE}.zip"

unzip -o -P "${VORTEX_DB_DOWNLOAD_UNZIP_PASSWORD}" "${VORTEX_DB_DIR}/${VORTEX_DB_FILE}.zip" -d "${VORTEX_DB_DIR}"
rm -f "${VORTEX_DB_DIR}/${VORTEX_DB_FILE}.zip" >/dev/null

pass "Finished database dump download from URL."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions