acoustid / mbdata

MusicBrainz SQLAlchemy Models
MIT License
97 stars 23 forks source link

MBSLAVE_CONFIG and command line argument "-c" don’t behave the same #7

Closed Freso closed 1 year ago

Freso commented 5 years ago

Using -c path/to/mbslave.conf and having MBSLAVE_CONFIG set to path/to/mbslave.conf (same path) don’t seem to behave identically (as I would have expected):

> echo 'UPDATE replication_control SET current_schema_sequence = 25;' | mbslave psql
psql: FATAL:  no pg_hba.conf entry for host "[local]", user "freso", database "musicbrainz", SSL off
> echo 'UPDATE replication_control SET current_schema_sequence = 25;' | mbslave -c $XDG_CONFIG_HOME/mbdata/mbslave.conf psql
UPDATE 1
> echo $MBSLAVE_CONFIG
/home/freso/.config/mbdata/mbslave.conf
> pacman -Qi python-mbdata-git|grep Version
Version                : 25.0.4.r0.g42461d8-1
lalinsky commented 5 years ago

Are you sure the environment variable is exported? It works for me.