Add an environment variable named IPTSD_CONFIG_FILE to load a configuration file from a custom location. This will mainly be used during development.
Currently the configuration is loaded from somewhere in /etc/** and /usr/**. Those directories are normally only writable by root. I have a hack where I did sudo ln -s /home/home/Downloads/iptsd.conf /etc/iptsd.conf. The situation is even worse for those developing on-device. With this PR, I hope to remove this hack.
This environment variable could also be used for automated testing.
Add an environment variable named
IPTSD_CONFIG_FILE
to load a configuration file from a custom location. This will mainly be used during development.Currently the configuration is loaded from somewhere in
/etc/**
and/usr/**
. Those directories are normally only writable by root. I have a hack where I didsudo ln -s /home/home/Downloads/iptsd.conf /etc/iptsd.conf
. The situation is even worse for those developing on-device. With this PR, I hope to remove this hack.This environment variable could also be used for automated testing.