Skip to content

Conversation

@SunnkerLocket89
Copy link
Owner

Motivation

  • Cache the resolved IPv4 address once to avoid repeating the ip ... | awk ... command substitution in the final webinterface messages and to improve readability.

Description

  • In install.sh compute ip_address=$(ip -o -4 route get 1.2.3.4 | awk '{for (i=1;i<=NF;i++) if ($i=="src"){print $(i+1); exit}}') and reuse http://${ip_address} in the lighttpd and nginx completion messages instead of duplicating the command substitution.

Testing

  • Ran bash -n install.sh to validate the script syntax and it succeeded.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants