mirror of
https://github.com/sstent/moosefs_docker.git
synced 2025-12-06 08:01:46 +00:00
25 lines
533 B
Bash
25 lines
533 B
Bash
#!/bin/bash
|
|
|
|
# wait for mfsmaster startup
|
|
ping -c 10 mfsmaster
|
|
|
|
mkdir -p /mnt/moosefs
|
|
|
|
# mount mfs
|
|
mfsmount /mnt/moosefs -H mfsmaster
|
|
|
|
# create example file to MooseFS
|
|
echo "If you can find this file in /mnt/moosefs/welcome_to_moosefs.txt on your client machine - it means MooseFS is working correctly, congratulations!" > /mnt/moosefs/welcome_to_moosefs.txt
|
|
|
|
# list files in MooseFS
|
|
ls /mnt/moosefs/
|
|
tree /mnt/moosefs/
|
|
|
|
if [[ $1 == "-d" ]]; then
|
|
while true; do sleep 1000; done
|
|
fi
|
|
|
|
if [[ $1 == "-bash" ]]; then
|
|
/bin/bash
|
|
fi
|