added ip address found even runs within a another container
continuous-integration/drone/push Build was killed
continuous-integration/drone/push Build was killed
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
SELECTOR=${JELLYFIN:-jellyfin}
|
||||
|
||||
JELLYFIN_IP=$(hostname -i | awk '{print $1}')
|
||||
if [ "$JELLYFIN_IP" == "" ]; then
|
||||
JELLYFIN_IP=$(ip route get 1 | awk '{print $7; exit}')
|
||||
fi
|
||||
|
||||
HOST_FILE=/etc/system/data/dns/hosts.local
|
||||
|
||||
EXISTS=$(grep -w -F $SELECTOR $HOST_FILE)
|
||||
|
||||
Reference in New Issue
Block a user