Files
moosefs_docker/moosefs-client/start-client.sh
2018-08-23 11:50:36 +02:00

24 lines
472 B
Bash

#!/bin/bash
# wait for mfsmaster startup
ping -c 10 mfsmaster
mkdir -p /mnt/mfs
# mount mfs
mfsmount /mnt/mfs -H mfsmaster
# create example file to MooseFS
echo "If you can find this file in /mnt/mfs/ on your client machine - it means MooseFS is working correctly, congratulations!" > /mnt/mfs/welcome_to_moosefs.txt
# list files in MooseFS
ls /mnt/mfs/
if [[ $1 == "-d" ]]; then
while true; do sleep 1000; done
fi
if [[ $1 == "-bash" ]]; then
/bin/bash
fi