From: Loic Dachary Date: Thu, 21 Nov 2013 17:51:06 +0000 (+0100) Subject: init: fix typo s/{$update_crush/${update_crush/ X-Git-Tag: v0.74~71^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F861%2Fhead;p=ceph.git init: fix typo s/{$update_crush/${update_crush/ Signed-off-by: Dietmar Maurer Reviewed-by: Loic Dachary --- diff --git a/src/init-ceph.in b/src/init-ceph.in index 7399abb8f858..e00143084705 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 91ac22c5188c..f91c67d8757e 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