From 3502d4f4b9fc29d5e420547a1a842029cff1317b Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 21 Nov 2013 18:51:06 +0100 Subject: [PATCH] init: fix typo s/{$update_crush/${update_crush/ Signed-off-by: Dietmar Maurer Reviewed-by: Loic Dachary --- src/init-ceph.in | 2 +- src/upstart/ceph-osd.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init-ceph.in b/src/init-ceph.in index 7399abb8f8585..e001430847059 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -317,7 +317,7 @@ for name in $what; do 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` diff --git a/src/upstart/ceph-osd.conf b/src/upstart/ceph-osd.conf index 91ac22c5188c2..f91c67d8757ee 100644 --- a/src/upstart/ceph-osd.conf +++ b/src/upstart/ceph-osd.conf @@ -16,7 +16,7 @@ pre-start script 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