Merge pull request #127 from YunoHost/several-ip

Retrieve only one IP address
This commit is contained in:
Alexandre Aubin 2022-09-16 09:19:32 +02:00 committed by GitHub
commit 68e88a81ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,7 @@ _LXC_START_AND_WAIT() {
fi
done
LXC_IP=$(lxc exec $1 -- hostname -I | grep -E -o "\<[0-9.]{8,}\>")
LXC_IP=$(lxc exec $1 -- hostname -I | cut -d' ' -f1 | grep -E -o "\<[0-9.]{8,}\>")
}
CLEAN_SWAPFILES() {