Open plettich opened 5 years ago
Ouh, good point, the handling of config files is a bit problematic at the moment.
I think our "privacyIDEA admins" configuration menu respects PRIVACYIDEA_CONFIGFILE
, but does not respect -f
.
Our "privacyIDEA loglevels" configuration menu respects -f
, but not PRIVACYIDEA_CONFIGFILE
.
And whenever we call pi-manage
in a subprocess, we respect neither -f
nor PRIVACYIDEA_CONFIGFILE
:-)
Hontestly: I would remove the -f
option. This was from a time, when the idea was to keep the pi-appliance flexible. But honestly, it is used in a very specific environment where we always know that the config file will be at /etc/privacyidea/pi.cfg.
So I simply would remove this option.
Currently, the pi-appliance tool uses a privacyIDEA config file different from
/etc/privacyidea/pi.cfg
if it is passed with parameter-f
.