mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
ba5a0d1ff6
fetch_config: always fetch if script exists and is executable fetch_config: make /etc/ceph/sample.fetch_config +x Makefile: fix whitespace
21 lines
384 B
Bash
21 lines
384 B
Bash
#!/bin/sh
|
|
conf="$1"
|
|
|
|
## fetch ceph.conf from some remote location and save it to $conf.
|
|
##
|
|
## make sure this script is executable (chmod +x fetch_config)
|
|
|
|
##
|
|
## examples:
|
|
##
|
|
|
|
## from a locally accessible file
|
|
# cp /path/to/ceph.conf $conf
|
|
|
|
## from a URL:
|
|
# wget -q -O $conf http://somewhere.com/some/ceph.conf
|
|
|
|
## via scp
|
|
# scp -i /path/to/id_dsa user@host:/path/to/ceph.conf $conf
|
|
|