Ensure weed is called correctly

This commit is contained in:
Scott Wallace 2022-04-02 17:24:52 +01:00
parent 84e6d4f119
commit 6fa6158a91
Signed by: scott
GPG key ID: AA742FDC5AFE2A72

View file

@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
BIN_DIR=/app
NEBULA_IP=$(ip -f inet addr show nebula1 | awk '/inet / {print $2}' | cut -f1 -d'/') 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 SEAWEEDFS_MASTERS=10.10.100.1:9333 # Need an odd number #,10.10.100.21:9333
if test "${LIGHTHOUSE}" == "true"; then 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 else
weed volume -dir=/storage -port=8080 -mserver=${SEAWEEDFS_MASTERS} ${BIN_DIR}/weed volume -dir=/storage -port=8080 -mserver=${SEAWEEDFS_MASTERS}
fi fi