mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-26 23:08:01 +08:00
Update start.sh
Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
5795286a7b
commit
685786c5f6
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,12 @@
|
|||
openssl req -nodes -new -x509 -subj '/CN=*' -sha256 -keyout /etc/privkey.pem -out /etc/fullchain.pem -days 365000
|
||||
cat /etc/fullchain.pem /etc/privkey.pem | tee /etc/cert.pem
|
||||
|
||||
# Only start container if nextcloud is accessible
|
||||
while ! nc -z "$NEXTCLOUD_HOST" 9000; do
|
||||
echo "Waiting for Nextcloud to start..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
set -x
|
||||
IPv4_ADDRESS_NC="$(dig nextcloud-aio-nextcloud IN A +short | grep '^[0-9.]\+$' | sort | head -n1)"
|
||||
sed -i "s|NC_IPV4_PLACEHOLDER|$IPv4_ADDRESS_NC|g"
|
||||
|
|
Loading…
Reference in a new issue