Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running locally derive port from FTL itself #362

Merged
merged 2 commits into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ ConstructAPI() {
# If no arguments were supplied set them to default
if [ -z "${URL}" ]; then
URL=127.0.0.1
# when no $URL is set we assume PADD is running locally and we can get the port value from FTL directly
PORT="$(pihole-FTL --config webserver.port)"
PORT="${PORT%%,*}"
fi
if [ -z "${PORT}" ]; then
PORT=80
PromoFaux marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -1231,7 +1234,7 @@ secretRead() {
# `-n` option (reading n chars)


# This workaround changes the terminal characteristics to not echo input and later rests this option
# This workaround changes the terminal characteristics to not echo input and later resets this option
# credits https://stackoverflow.com/a/4316765
# showing astrix instead of password
# https://stackoverflow.com/a/24600839
Expand Down