Coro
June 30, 2020, 9:12am
1
Can we allow shell-expansion in FTL's config options dealing with files?
Like
LOGFILE=~/pihole/pihole-FTL.log
GRAVITYDB=~/pihole/gravity.db
to look for the files in
/home/pi/pihole/pihole-FTL.log
/home/pi/pihole/gravity.db
(another user would use another file).
Or allow using environment variables as I'd expect them to work from the command line, like
LOGFILE=/var/log/${USERNAME}/pihole-FTL.log
Thank you for considering this.
DL6ER
June 30, 2020, 3:32pm
2
Hmm, yes, we could add this, but I have a question: Will this do more harm than good?
For instance, will users expect that ~
relates to the user pihole-FTL
is running as (which is typically different from the user they use to login to their systems)?
I wouldn't do this.
Absolute paths is the only way to be sure of the true intentions. Shortcuts and expansions are variable by nature and will cause unexpected results.
What is the problem that this FR would solve?
Coro
July 1, 2020, 5:07am
4
FTL would fit better into a multi-user environment.