Database management scripts not working for secondary databases
following #5240 (comment 165675)
The database management scripts are not working for a couple of databases:
- indexers
swh@swh-toolbox-665d47b677-lmvhn:~/bin$ ./check-indexer-storage-db-version.sh
Usage: swh db version [OPTIONS] MODULE
Try 'swh db version -h' for help.
Error: Invalid value: Configuration cls must be set to 'postgresql' for this command.
/opt/swh/bin/check-db-version.sh: line 34: [: : integer expression expected
Migration required from to .
- scrubbers auto generated configurations
swh@swh-toolbox-665d47b677-lmvhn:~/bin$ ./check-scrubber-storage-primary-db-version.sh
Usage: swh db version [OPTIONS] MODULE
Try 'swh db version -h' for help.
Error: Invalid value: Configuration cls must be set to 'postgresql' for this command.
/opt/swh/bin/check-db-version.sh: line 34: [: : integer expression expected
Migration required from to .
- secondary storage
swh@swh-toolbox-665d47b677-lmvhn:~/bin$ ./check-storage-secondary-db-version.sh
Usage: swh db version [OPTIONS] MODULE
Try 'swh db version -h' for help.
Error: Invalid value: Configuration cls must be set to 'postgresql' for this command.
/opt/swh/bin/check-db-version.sh: line 34: [: : integer expression expected
Migration required from to .
Trying to guess the module name from the configuration file name can't work so we should find a better(aka working ;) ) way to do it.