From 6fa6158a91e1da8538e9a4b8d3c884c19a4931c9 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sat, 2 Apr 2022 17:24:52 +0100 Subject: [PATCH] Ensure `weed` is called correctly --- seaweedfs-start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seaweedfs-start.sh b/seaweedfs-start.sh index 2b51263..ecf058f 100755 --- a/seaweedfs-start.sh +++ b/seaweedfs-start.sh @@ -1,10 +1,11 @@ #!/bin/sh +BIN_DIR=/app NEBULA_IP=$(ip -f inet addr show nebula1 | awk '/inet / {print $2}' | cut -f1 -d'/') SEAWEEDFS_MASTERS=10.10.100.1:9333 # Need an odd number #,10.10.100.21:9333 if test "${LIGHTHOUSE}" == "true"; then - weed master -ip="${NEBULA_IP}" -port=9333 -mdir=/storage -peers=${SEAWEEDFS_MASTERS} + ${BIN_DIR}/weed master -ip="${NEBULA_IP}" -port=9333 -mdir=/storage -peers=${SEAWEEDFS_MASTERS} else - weed volume -dir=/storage -port=8080 -mserver=${SEAWEEDFS_MASTERS} + ${BIN_DIR}/weed volume -dir=/storage -port=8080 -mserver=${SEAWEEDFS_MASTERS} fi