eg_db_config bug : --config-file seems to cause --offline-file to be required

Bug #2038465 reported by Josh Stompro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

EG 3.11.1 - was just running the eg_db_config script with the following arguments

~/Evergreen$ perl Open-ILS/src/support-scripts/eg_db_config \
--update-config --config-file /openils/conf/opensrf.xml \
--service all --create-offline \
--user evergreen --password password --hostname 192.168.0.1 --port 5432 --database egdbdev-test
Backed up original configuration file to '/openils/conf/opensrf.xml.2023.10.4.12.33.42'
Could not write offline database setup to /offline-config.pl

The offline database path seems like it got set "/" for some reason.

Removing the "--config-file /openils/conf/opensrf.xml" allows it to work like normal.

~/Evergreen$ perl Open-ILS/src/support-scripts/eg_db_config \
--update-config \
--service all --create-offline \
--user evergreen --password password --hostname 192.168.0.1 --port 5432 --database egdbdev-test
Backed up original configuration file to '/openils/conf/opensrf.xml.2023.10.4.12.34.1'
Writing offline database configuration to /openils/conf/offline-config.pl

Specifying the "--offline-file" argument also works fine. But it seems like a bug that "--config-file" causes "--offline-file" to be required.

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Marked as duplicate of bug 2033069, didn't see that until after I hit submit of course.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.