2022-04-02 17:09:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-04-02 17:24:52 +01:00
|
|
|
BIN_DIR=/app
|
2022-04-06 08:53:24 +01:00
|
|
|
MASTERS=10.10.100.1:9333 # Need an odd number #,10.10.100.21:9333
|
2022-04-06 08:30:25 +01:00
|
|
|
NODE_IP=$(/app/nebula-cert print -path /etc/nebula/host.crt -json | jq -r '.details.ips[0] | split("/")[0]')
|
2022-04-02 17:09:06 +01:00
|
|
|
|
|
|
|
if test "${LIGHTHOUSE}" == "true"; then
|
2022-04-06 08:53:24 +01:00
|
|
|
${BIN_DIR}/weed master -mdir=/storage/raw -peers=${MASTERS} -ip="${NODE_IP}" &
|
2022-04-02 17:09:06 +01:00
|
|
|
else
|
2022-04-06 08:53:24 +01:00
|
|
|
${BIN_DIR}/weed volume -dir=/storage/raw -mserver=${MASTERS} -ip="${NODE_IP}" &
|
|
|
|
${BIN_DIR}/weed filer -master=${MASTERS} -ip="${NODE_IP}" -encryptVolumeData &
|
2022-04-06 08:30:25 +01:00
|
|
|
# ${BIN_DIR}/weed filer.remote.sync -dir=/test/ &
|
2022-04-05 21:17:58 +01:00
|
|
|
|
2022-04-06 08:30:25 +01:00
|
|
|
${BIN_DIR}/weed mount -dir=/data -dirAutoCreate &
|
|
|
|
${BIN_DIR}/weed mount -dir=/test -dirAutoCreate -filer.path=/test/ &
|
|
|
|
${BIN_DIR}/weed mount -dir=/blah -dirAutoCreate -filer.path=/root/ &
|
2022-04-02 17:09:06 +01:00
|
|
|
fi
|
2022-04-02 17:52:05 +01:00
|
|
|
|
|
|
|
wait
|