Skip to content

Commit 56e8b6e

Browse files
committed
Fix start script
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
1 parent 1c16859 commit 56e8b6e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

start.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,19 @@ cat >${CONFIGDIR}/qemu-config.json <<EOF
143143
EOF
144144
fi
145145

146+
QEMU_HOST="$(echo "${BRIDGE_IP}" | cut -d'/' -f1)"
147+
if [[ "$(uname -s)" == "Darwin" ]]; then
148+
QEMU_HOST="localhost"
149+
fi
150+
146151
cat >${CONFIGDIR}/controller-config.json <<EOF
147152
{
148153
"port": ${CONTROLLER_PORT},
149154
"cache": {
150155
"root": "cache"
151156
},
152157
"root": "${ROOTDIR}",
153-
"qemuEndpoint": "$(echo "${BRIDGE_IP}" | cut -d'/' -f1):${QEMU_PORT}"
158+
"qemuEndpoint": "${QEMU_HOST}:${QEMU_PORT}"
154159
}
155160
EOF
156161

0 commit comments

Comments
 (0)