mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
25 lines
393 B
Bash
Executable File
25 lines
393 B
Bash
Executable File
#!/bin/sh
|
|
if [ -e ./tmp ]; then
|
|
:
|
|
else
|
|
mkdir ./tmp
|
|
fi
|
|
|
|
if [ -x /usr/local/bin/weed ]; then
|
|
weed server \
|
|
-dir ./tmp \
|
|
-master.dir ./tmp \
|
|
-volume.dir.idx ./tmp \
|
|
-ip localhost \
|
|
-ip.bind 0.0.0.0 \
|
|
-filer
|
|
else
|
|
./seaweedfs/weed server \
|
|
-dir ./tmp \
|
|
-master.dir ./tmp \
|
|
-volume.dir.idx ./tmp \
|
|
-ip localhost \
|
|
-ip.bind 0.0.0.0 \
|
|
-filer
|
|
fi
|