Lissy93 / AdGuardian-Term

🛡️ Terminal-based, real-time traffic monitoring and statistics for your AdGuard Home instance
https://adguardian.as93.net
MIT License
901 stars 37 forks source link

Pass the variables to exectubale? #1

Closed papampi closed 1 year ago

papampi commented 1 year ago

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 1 year ago

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

papampi commented 1 year ago

Thanks a lot @Lissy93 You are the best ...