mirror of
https://github.com/sstent/moosefs_docker.git
synced 2025-12-06 08:01:46 +00:00
23 lines
434 B
Bash
Executable File
23 lines
434 B
Bash
Executable File
#!/bin/bash
|
|
cp /etc/mfs/mfschunkserver.cfg.sample /etc/mfs/mfschunkserver.cfg
|
|
|
|
mkdir -p /mnt/hdd0
|
|
chmod -R 777 /mnt/hdd0
|
|
chown -R mfs:mfs /mnt/hdd0
|
|
|
|
#Default size if not set
|
|
SIZE="${SIZE:- 10}"
|
|
|
|
echo "/mnt/hdd0 "$SIZE"GiB" >> /etc/mfs/mfshdd.cfg
|
|
echo "LABELS=$LABELS" >> /etc/mfs/mfschunkserver.cfg
|
|
|
|
mfschunkserver start
|
|
|
|
if [[ $1 == "-d" ]]; then
|
|
while true; do sleep 1000; done
|
|
fi
|
|
|
|
if [[ $1 == "-bash" ]]; then
|
|
/bin/bash
|
|
fi
|