Skip to content

updateSchemaMDB.sh script not working #7871

@Kris-LIBIS

Description

@Kris-LIBIS

In our installation, the updateSchemaMDB.sh script does not perform as expected. We always get the message "Dataverse responded with empty file. When running on K8s: did you bootstrap yet?".

The problem is with the test [[ "`wc -l ${TMPFILE}`" < "3" ]] which always returns true, even when the result is much more than 3 lines. If changed to [[ `wc -l < ${TMPFILE}` -lt 3 ]], it correctly returns true or false depending on whether the file size is less than 3 lines.

I'll create a PR with the fix, but I'm holding off for now because of PR #7865 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions