2022-04-02 17:09:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-04-02 17:24:52 +01:00
|
|
|
BIN_DIR=/app
|
2022-04-02 17:09:06 +01:00
|
|
|
SEAWEEDFS_MASTERS=10.10.100.1:9333 # Need an odd number #,10.10.100.21:9333
|
|
|
|
|
|
|
|
if test "${LIGHTHOUSE}" == "true"; then
|
2022-04-02 17:52:05 +01:00
|
|
|
${BIN_DIR}/weed master -mdir=/storage -peers=${SEAWEEDFS_MASTERS} &
|
2022-04-02 17:09:06 +01:00
|
|
|
else
|
2022-04-02 17:52:05 +01:00
|
|
|
${BIN_DIR}/weed volume -dir=/storage -mserver=${SEAWEEDFS_MASTERS} &
|
|
|
|
${BIN_DIR}/weed filer -master=${SEAWEEDFS_MASTERS} &
|
2022-04-05 09:12:49 +01:00
|
|
|
${BIN_DIR}/weed filer.remote.sync -dir=/ &
|
2022-04-02 17:09:06 +01:00
|
|
|
fi
|
2022-04-02 17:52:05 +01:00
|
|
|
|
|
|
|
wait
|