refactor: change command to get active network interface

This commit is contained in:
rsatrio
2025-03-14 06:31:32 +07:00
parent 873f515727
commit d3d26eac05
6 changed files with 6 additions and 6 deletions

View File

@ -42,4 +42,4 @@ STOPSIGNAL SIGINT
ENV PYTHONPATH /opt/fatt
WORKDIR /opt/fatt
USER fatt:fatt
CMD python3 fatt.py -i $(/sbin/ip address show | /usr/bin/awk '/inet.*(brd|global)/{ print $NF; exit }') --print_output --json_logging -o log/fatt.log
CMD python3 fatt.py -i $(ip route | grep "^default" | awk '{ print $5 }') --print_output --json_logging -o log/fatt.log