ucloud-setup/get_ceph_config.sh
2019-08-29 16:45:40 +05:00

8 lines
No EOL
221 B
Bash

if [ $# -lt 2 ]; then
echo "arg1: username of ceph host (ssh) e.g root"
echo "arg2: url/ip of ceph host e.g ceph-test.llnu.ungleich.cloud"
exit 1
fi
mkdir -p /etc/ceph
sftp -b ./ceph_batch_cmd $1@$2:/etc/ceph