Pass the variables to exectubale?
Closed this issue · 2 comments
papampi commented
This is awesome like all your other works.
But I can not find how to pass the environmental variables to the executable.
Tried with : --ADGUARD_IP="192.168.1.10" or ADGUARD_IP="192.168.1.10" or -ADGUARD_IP="192.168.1.10" or ...
adguardian-linux --ADGUARD_IP="192.168.1.10" --ADGUARD_PORT="3000"
Starting initialization checks...
The ADGUARD_IP environmental variable is not yet set
Whatever I do it keep asking me for them
Edit:
Solved by exporting them, but still cant find out how to use them with flag
Lissy93 commented
Heya @papampi
Right now they're just normal environmental variables, so the following line should work:
ADGUARD_IP="aaa" ADGUARD_PORT="bbb" ADGUARD_USERNAME="ccc" ADGUARD_PASSWORD="ddd" ./adguardian
(replace ./adguardian with wherever the path to the binary is)
I'll make an update this weekend to update the docs, and get working as flags, so that you don't need to use env vars for sensitive info