Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
if [ "$type" = "osd" ]; then
get_conf update_crush "" "osd crush update on start"
- if [ "${update_crush:-1}" = "1" -o "{$update_crush:-1}" = "true" ]; then
+ if [ "${update_crush:-1}" = "1" -o "${update_crush:-1}" = "true" ]; then
# update location in crush
get_conf osd_location_hook "$BINDIR/ceph-crush-location" "osd crush location hook"
osd_location=`$osd_location_hook --cluster ceph --id $id --type osd`
install -d -m0755 /var/run/ceph
update="$(ceph-conf --cluster=${cluster:-ceph} --name=osd.$id --lookup osd_crush_update_on_start || :)"
- if [ "${update:-1}" = "1" -o "{$update:-1}" = "true" ]; then
+ if [ "${update:-1}" = "1" -o "${update:-1}" = "true" ]; then
# update location in crush
hook="$(ceph-conf --cluster=${cluster:-ceph} --name=osd.$id --lookup osd_crush_location_hook || :)"
if [ -z "$hook" ]; then