Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
🐛 Fix ip retrieval by removing prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Poeschl committed Oct 13, 2023
1 parent 45212b8 commit eed435a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncthing/root/etc/s6-overlay/s6-rc.d/syncthing/run
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export STNOUPGRADE=1
bashio::log.info 'Setup config'
mkdir -p /data/config

ip=$(ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' | head -n 1)
ip=$(ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{sub("addr:",""); print $2}' | head -n 1)

if [ -z "$ip" ]
then
Expand Down

0 comments on commit eed435a

Please sign in to comment.