mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-16 10:40:21 +00:00
fix getting ip-address
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
ebac4c928b
commit
30f5e27889
2 changed files with 3 additions and 2 deletions
|
|
@ -65,7 +65,8 @@ RUN set -ex; \
|
||||||
libusrsctp \
|
libusrsctp \
|
||||||
libwebsockets \
|
libwebsockets \
|
||||||
\
|
\
|
||||||
shadow; \
|
shadow \
|
||||||
|
grep; \
|
||||||
useradd --system -u 1000 eturnal; \
|
useradd --system -u 1000 eturnal; \
|
||||||
apk del --no-cache \
|
apk del --no-cache \
|
||||||
shadow; \
|
shadow; \
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ elif [ -z "$INTERNAL_SECRET" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
IPv4_ADDRESS_TALK="$(dig nextcloud-aio-talk IN A +short +search | grep '^[0-9.]\+$' | sort | head -n1)"
|
IPv4_ADDRESS_TALK="$(hostname -i | grep -oP '[0-9]+\.[0-9]+.[0-9]+\.[0-9]+' | head -1)"
|
||||||
IPv6_ADDRESS_TALK="$(dig nextcloud-aio-talk AAAA +short +search | grep '^[0-9a-f:]\+$' | sort | head -n1)"
|
IPv6_ADDRESS_TALK="$(dig nextcloud-aio-talk AAAA +short +search | grep '^[0-9a-f:]\+$' | sort | head -n1)"
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue